Skip to content

Commit

Permalink
[ONNX] Make input shape immutable (apache#7844)
Browse files Browse the repository at this point in the history
Co-authored-by: Yanming Wang <[email protected]>
  • Loading branch information
2 people authored and trevor-m committed May 11, 2021
1 parent 1f2d7a7 commit c244620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/frontend/onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -3058,7 +3058,7 @@ def __init__(self, shape, dtype, freeze_params=False):
self._renames = {}
self._num_input = 0
self._num_param = 0
self._shape = shape if shape else {}
self._shape = shape.copy() if shape else {}
self._input_names = []
self._dtype = dtype
self.opset = None
Expand Down

0 comments on commit c244620

Please sign in to comment.