We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, below sample code give me error:
return match ( name, "WarmupMultiStepLR", WarmupMultiStepLR( \ optimizer, \ cfg.SOLVER.STEPS, \ cfg.SOLVER.GAMMA, \ warmup_factor=cfg.SOLVER.WARMUP_FACTOR, \ warmup_iters=cfg.SOLVER.WARMUP_ITERS, \ warmup_method=cfg.SOLVER.WARMUP_METHOD, \ ), "WarmupCosineLR", WarmupCosineLR( \ optimizer, \ cfg.SOLVER.MAX_ITER, \ warmup_factor=cfg.SOLVER.WARMUP_FACTOR, \ warmup_iters=cfg.SOLVER.WARMUP_ITERS, \ warmup_method=cfg.SOLVER.WARMUP_METHOD, \ ), _, raise ValueError("Unknown LR scheduler: {}".format(name)) )
_, raise ValueError("Unknown LR scheduler: {}".format(name)) ^ SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered:
Maybe pampy needs a raise_error function to delegate error raising.
raise_error
from pampy import match, _, raise_error return match(x, 1, "foo", 2, "bar", _, raise_error(ValueError, "Message") )
Sorry, something went wrong.
No branches or pull requests
Hi,
below sample code give me error:
The text was updated successfully, but these errors were encountered: