Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[draft] add circle_plus_gen as tool #12975

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zetwhite
Copy link
Contributor

@zetwhite zetwhite commented May 8, 2024

This draft tried to implement circleplus generating tools.

ONE-DCO-1.0-Signed-off-by: SeungHui Youn sseung.youn@samsung.com

This draft tried to implement circleplus generating tools.

ONE-DCO-1.0-Signed-off-by: SeungHui Youn <sseung.youn@samsung.com>
Comment on lines +5 to +16
def load_optimizer(opt_obj: dict):
opt_type = opt_obj["type"]
opt_args = opt_obj["args"]

if opt_type.lower() in tinfo.SGD.name:
return Optimizer.SGD, OptimizerOptions.SGDOptions, tinfo.SGD(**opt_args)

elif opt_type.lower() in tinfo.Adam.name:
return Optimizer.ADAM, OptimizerOptions.AdamOptions, tinfo.Adam(**opt_args)

else:
raise ValueError(f"not supported optmizer.type={opt_type}")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant