Skip to content

Commit 7747de3

Browse files
committed
fix
1 parent b5aa71b commit 7747de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnx_diagnostic/export/onnx_plug.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ def torch_op(self) -> Callable:
204204
"Returns ``torch.ops.onny_plug.<name>"
205205
return getattr(getattr(torch.ops, self.domain), self.name).default
206206

207-
def __call__(self, *args):
207+
def __call__(self, *args, **kwargs):
208208
"""Calls eager_fn or shape_fn if the model is being exported."""
209209
if is_exporting():
210210
return self.torch_op(*args)
211-
return self.eager_fn(*args)
211+
return self.eager_fn(*args, **kwargs)
212212

213213
def _register(self):
214214
"""Registers the custom op."""

0 commit comments

Comments
 (0)