Skip to content

Commit

Permalink
fix onnx shape dtype (apache#4528)
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi authored and zhiics committed Jan 11, 2020
1 parent 27674bd commit bd925da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/tvm/relay/frontend/onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,7 @@ class Shape(OnnxOpConverter):

@classmethod
def _impl_v1(cls, inputs, attr, params):
# TODO(@jroesch): use shape_of once it has been fixed)
return _op.shape_of(inputs[0])
return _op.shape_of(inputs[0], "int64")

class Cast(OnnxOpConverter):
""" Operator converter for Cast.
Expand Down

0 comments on commit bd925da

Please sign in to comment.