Skip to content

Commit

Permalink
[Torch] Simplify contiguous (apache#7544)
Browse files Browse the repository at this point in the history
  • Loading branch information
comaniac authored and trevor-m committed Mar 2, 2021
1 parent 3ff407f commit 40668d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/tvm/relay/frontend/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,8 +1004,7 @@ def threshold(self, inputs, input_types):
return _op.nn.relu(data)

def contiguous(self, inputs, input_types):
data = inputs[0]
return _op.tensor.copy(data)
return inputs[0]

def batch_norm(self, inputs, input_types):
data = inputs[0]
Expand Down

0 comments on commit 40668d7

Please sign in to comment.