Skip to content

Commit

Permalink
[Frontend] Pass input type to relay's from_pytorch (#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgt312 authored Dec 9, 2021
1 parent d3a23f3 commit 9eec547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mnm/frontend/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def from_pytorch(model, shape_dict, model_file=None, hash_file=None):
hashf.write(model_hash)
else:
scripted_model = trace_model(model, input_type, input_shape)
shape_list = [(input_name, input_shape)]
shape_list = [(input_name, (input_shape, input_type))]
relay_mod, relay_params = relay.frontend.from_pytorch(scripted_model, shape_list)
meta_mod = FromRelay()(relay_mod)
meta_params = OrderedDict()
Expand Down

0 comments on commit 9eec547

Please sign in to comment.