From 40668d71ac9fcc050661cd46e6981245682883b4 Mon Sep 17 00:00:00 2001 From: Cody Yu Date: Fri, 26 Feb 2021 22:21:15 -0800 Subject: [PATCH] [Torch] Simplify contiguous (#7544) --- python/tvm/relay/frontend/pytorch.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/tvm/relay/frontend/pytorch.py b/python/tvm/relay/frontend/pytorch.py index a471639da623..31c78cfdea84 100644 --- a/python/tvm/relay/frontend/pytorch.py +++ b/python/tvm/relay/frontend/pytorch.py @@ -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]