From 85e0dcf446eda236e73f13b441b0585e14a5f67c Mon Sep 17 00:00:00 2001 From: Cody Yu Date: Fri, 26 Feb 2021 23:35:40 +0000 Subject: [PATCH] [Torch] Simplify contiguous --- 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 fdebd2f50e68..5efe35e9c608 100644 --- a/python/tvm/relay/frontend/pytorch.py +++ b/python/tvm/relay/frontend/pytorch.py @@ -991,8 +991,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]