We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5922056 commit 6e50ad3Copy full SHA for 6e50ad3
nemo_run/lazy.py
@@ -126,7 +126,11 @@ def resolve(self, ctx: Optional["RunContext"] = None) -> Partial:
126
if isinstance(fn, LazyTarget):
127
fn = fn.target
128
129
- sig = inspect.signature(fn)
+ _fn = fn
130
+ if hasattr(fn, "__fn_or_cls__"):
131
+ _fn = fn.__fn_or_cls__
132
+
133
+ sig = inspect.signature(_fn)
134
param_names = sig.parameters.keys()
135
136
dotlist = dictconfig_to_dot_list(
0 commit comments