clearml/examples/frameworks/jsonargparse/jsonargparse_command.py

16 lines
347 B
Python
Raw Normal View History

2022-03-24 17:30:24 +00:00
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__":
2022-03-29 08:00:33 +00:00
Task.init(project_name="examples", task_name="jsonargparse command")
2022-03-24 17:30:24 +00:00
print(CLI(Main))