From commits-return-11461-archive-asf-public=cust-asf.ponee.io@tvm.apache.org Wed Apr 15 08:52:29 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5E5A618066D for ; Wed, 15 Apr 2020 10:52:29 +0200 (CEST) Received: (qmail 74226 invoked by uid 500); 15 Apr 2020 08:52:28 -0000 Mailing-List: contact commits-help@tvm.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tvm.apache.org Delivered-To: mailing list commits@tvm.apache.org Received: (qmail 74210 invoked by uid 99); 15 Apr 2020 08:52:28 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2020 08:52:28 +0000 From: GitBox To: commits@tvm.apache.org Subject: [GitHub] [incubator-tvm] masahi commented on a change in pull request #5332: [PYTORCH]Take, Topk op support Message-ID: <158694074875.20683.11257140971915983840.gitbox@gitbox.apache.org> References: In-Reply-To: Date: Wed, 15 Apr 2020 08:52:28 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit masahi commented on a change in pull request #5332: [PYTORCH]Take, Topk op support URL: https://github.com/apache/incubator-tvm/pull/5332#discussion_r408683936 ########## File path: tests/python/frontend/pytorch/test_forward.py ########## @@ -1545,6 +1545,61 @@ def forward(self, *args): verify_model(Round1().float().eval(), input_data=input_data) +def test_forward_take(): + torch.set_grad_enabled(False) + class Take1(Module): + def forward(self, *args): + indices = torch.tensor([[0,0],[1,0]]) + if torch.cuda.is_available(): Review comment: remove this. Doesn't seem useful as we only test on cpu. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services