add U-GAT-IT
This commit is contained in:
@@ -67,7 +67,11 @@ class _Registry:
|
||||
if default_args is not None:
|
||||
for name, value in default_args.items():
|
||||
args.setdefault(name, value)
|
||||
return obj_cls(**args)
|
||||
try:
|
||||
obj = obj_cls(**args)
|
||||
except TypeError as e:
|
||||
raise TypeError(f"invalid argument in {args} when try to build {obj_cls}\n") from e
|
||||
return obj
|
||||
|
||||
|
||||
class ModuleRegistry(_Registry):
|
||||
|
||||
Reference in New Issue
Block a user