-
-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
🚀 Feature request
Hi! I would like to use torch functions straight from the yaml file, for example:
class_path: SomeClass
init_args:
process:
class_path: torch.argmax
init_args:
dim: 1However, I have had time to succeed, as the typing check fails, as for example the following:
class SomeClass:
def __init__(self, process: Callable[..., torch.Tensor]) -> None:
...The way around is to wrap them around callable classes, but it would be great to support them, like the dot imports for the torch optimizes, so I dont have to duplicate them or clear a wrapper class
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request