Skip to content

Commit

Permalink
Remove shape dict definition in tvmc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwfromm committed Dec 16, 2020
1 parent 389820c commit 895954f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions python/tvm/driver/tvmc/frontends.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,7 @@ def load(self, path):
# pylint: disable=E1101
model = onnx.load(path)

# pylint: disable=E1101
name = model.graph.input[0].name

# pylint: disable=E1101
proto_shape = model.graph.input[0].type.tensor_type.shape.dim
shape = [d.dim_value for d in proto_shape]

shape_dict = {name: shape}

return relay.frontend.from_onnx(model, shape_dict)
return relay.frontend.from_onnx(model)


class TensorflowFrontend(Frontend):
Expand Down

0 comments on commit 895954f

Please sign in to comment.