Skip to content

Commit

Permalink
fix failing test TestPyTorchConverterExamples::test_fully_dynamic_inp…
Browse files Browse the repository at this point in the history
…uts (#1079)
  • Loading branch information
aseemw authored Feb 5, 2021
1 parent ecf8f3d commit 1931758
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coremltools/converters/mil/frontend/torch/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -2706,6 +2706,7 @@ def copy_(context, node):
inputs = _get_inputs(context, node, expected=3)
context.add(mb.identity(x=inputs[0], name=node.name))

@register_torch_op
def dtype(context, node):
inputs = _get_inputs(context, node, expected=1)
dtype_str = inputs[0].dtype.__name__
Expand Down

0 comments on commit 1931758

Please sign in to comment.