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 Morris committed May 6, 2021
1 parent 19f3763 commit 1f051c2
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 1f051c2

Please sign in to comment.