mirror of
https://github.com/clearml/clearml
synced 2025-02-01 09:36:49 +00:00
16 lines
401 B
Python
16 lines
401 B
Python
|
from jsonargparse import CLI
|
||
|
from clearml import Task
|
||
|
|
||
|
|
||
|
class Main:
|
||
|
def __init__(self, prize: int = 100):
|
||
|
self.prize = prize
|
||
|
|
||
|
def person(self, name: str):
|
||
|
return "{} won {}!".format(name, self.prize)
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
Task.init(project_name="examples", task_name="jsonargparse command", auto_connect_frameworks={"pytorch_lightning": False})
|
||
|
print(CLI(Main))
|