Add jsonargparse support (#403)

This commit is contained in:
allegroai
2022-03-24 19:30:24 +02:00
parent eed8f8cdfd
commit c5e428a03d
5 changed files with 192 additions and 94 deletions

View File

@@ -0,0 +1,15 @@
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))