From dev-return-82-archive-asf-public=cust-asf.ponee.io@tvm.apache.org Tue Apr 2 06:23:36 2019 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id E91E9180668 for ; Tue, 2 Apr 2019 08:23:35 +0200 (CEST) Received: (qmail 92883 invoked by uid 500); 2 Apr 2019 06:23:35 -0000 Mailing-List: contact dev-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 dev@tvm.apache.org Received: (qmail 92869 invoked by uid 99); 2 Apr 2019 06:23:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2019 06:23:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id AE85EC2976 for ; Tue, 2 Apr 2019 06:23:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.9 X-Spam-Level: X-Spam-Status: No, score=0.9 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_SHORT=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=discuss.tvm.ai header.b=EUKrM4vq; dkim=pass (1024-bit key) header.d=elasticemail.com header.b=bIyJtW/7 Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ERKqxCWAM_V7 for ; Tue, 2 Apr 2019 06:23:31 +0000 (UTC) Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 26E2B624F1 for ; Tue, 2 Apr 2019 06:23:31 +0000 (UTC) Received: by mail-ed1-f47.google.com with SMTP id s39so10560684edb.2 for ; Mon, 01 Apr 2019 23:23:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:delivered-to:dkim-signature:dkim-signature:from :date:subject:message-id:reply-to:sender:to:feedback-id :list-unsubscribe:auto-submitted:precedence:list-id:list-archive :mime-version; bh=qHPRw23QepB2iGwshWUkiYcxquiv/4GeCSjUxelN3SM=; b=rg/JqOwysNnxcCh0+e4QTwkYUHZTod4npX/clS1G68RplYVhA81Q2A5bifBWDFAlmo E/FlBNkmjq6nzJMnD5se5Amw/SPfnI2tYMso8tZaNZlgjmB7/KGI/RaRIDVtbPk82CUS FSURnoxoOeveblNyUB9T2orouLE3w63n5sZRqUyYm2fiw+YUyqF7B5hvMkB024BpSe96 yaVa5REzvGLF8bW50bN3ivE8KOmVz0dK1mNbDHGZn0VvspA3/Sh2W1zYKjTCZh7N3JJf fFh8X5FXCAbZtXI0tIAsrK4N7TXjbv/JChEFldBQNCHF4C4ulAB5elf2zqx1h9rPa40t ULQQ== X-Gm-Message-State: APjAAAVZy6ZGF8ET1dBFDgSH388IOoz2jalPAbATxyPp+2t2vAc2PcMV Z4v//z25WcJXEVMsyy9aO3HDRfzmttgbQo1pSqTVaD1W04CMny4= X-Received: by 2002:a50:a547:: with SMTP id z7mr44808694edb.58.1554186209955; Mon, 01 Apr 2019 23:23:29 -0700 (PDT) X-Forwarded-To: dev@tvm.apache.org X-Forwarded-For: tvm.archiver@gmail.com dev@tvm.apache.org Delivered-To: tvm.archiver@gmail.com Received: by 2002:a50:cf4b:0:0:0:0:0 with SMTP id d11csp1363540edk; Mon, 1 Apr 2019 23:23:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwvtmlnsklR679PYbPQZy7qmao1wNexyKJ5I5iltvwxUSuEYul4PQ6CKA8f+cygmxvvdLa X-Received: by 2002:adf:de8d:: with SMTP id w13mr42545480wrl.26.1554186208831; Mon, 01 Apr 2019 23:23:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554186208; cv=none; d=google.com; s=arc-20160816; b=xmY39CE48Ta1ib0yMWRrAB+pejEc1DTecRhGw+kU9Nel6PW87Z6AUsIbjCYd8eiTaA RkXBSTM9DG/XUkrlFqGt0eQw9vdISK83C6rJ7t8pJ0kuPIY87M1cfOhubRXI2BnGFjAg RyVk83c8EgcSh+fVd4m9yATcQSCzA3QsWRaU/GJlIO1lNBOjcpNkcbVnly+nT694Uit9 IbdYuRWfNoBMAkzD7FQK4u8kVL0wwQMp/iTxfAYoIlkJf7O/Y/AhLnlqliQGV0SD2LLI Sd4oagjLgQa9QTbZ/Ds80PjCi+NpHqSh/yqqZHfaEvZyOXefBGVQW3fkc25pOYTEAFE7 XwNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-archive:list-id:precedence:auto-submitted :list-unsubscribe:feedback-id:to:sender:reply-to:message-id:subject :date:from:dkim-signature:dkim-signature; bh=qHPRw23QepB2iGwshWUkiYcxquiv/4GeCSjUxelN3SM=; b=FponZUYwHKJpzJSFA5gl7XkD6QB3iZYFUdGS9CzQlPE/5TyrjPw7XtxnMdqZmH4pDi f0Nc+G3Vm0cHtwM7wpOkVdUJFXjIedR68aCakKJWORl2+pa8Kcpg29SqOZnpiU5RQKx1 +8rl6Te6I2Ec4XaDppoydZQxsI9bxLXDodMZEbdOeBMG3yeevMSZXCuDApk+Pn5CMou7 kk0kaXIUvANeaxrWw4mYm9kJPsglPYmzcAeldjZRmjOr9163TVPuQIQspfPvVxqQcG7T WdVBIsfaTWAAwWLwG5LbhJmUrzs/pIu6cCLI4LjPGWwFdRsfZEDVphygFLHRF6KzpMSg uE5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@discuss.tvm.ai header.s=api header.b=EUKrM4vq; dkim=pass header.i=@elasticemail.com header.s=api header.b="bIyJtW/7"; spf=neutral (google.com: 216.169.98.249 is neither permitted nor denied by best guess record for domain of noreply@discuss.tvm.ai) smtp.mailfrom=noreply@discuss.tvm.ai Received: from np249.mxout.mta3.net (np249.mxout.mta3.net. [216.169.98.249]) by mx.google.com with ESMTPS id w4si7653217wrs.410.2019.04.01.23.23.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Apr 2019 23:23:28 -0700 (PDT) Received-SPF: neutral (google.com: 216.169.98.249 is neither permitted nor denied by best guess record for domain of noreply@discuss.tvm.ai) client-ip=216.169.98.249; Authentication-Results: mx.google.com; dkim=pass header.i=@discuss.tvm.ai header.s=api header.b=EUKrM4vq; dkim=pass header.i=@elasticemail.com header.s=api header.b="bIyJtW/7"; spf=neutral (google.com: 216.169.98.249 is neither permitted nor denied by best guess record for domain of noreply@discuss.tvm.ai) smtp.mailfrom=noreply@discuss.tvm.ai DKIM-Signature: v=1; a=rsa-sha256; d=discuss.tvm.ai; s=api; c=relaxed/simple; t=1554186187; h=from:date:subject:reply-to:to:list-unsubscribe:mime-version; bh=T/H1AyMcj9TSrTAjmV1lQuXDgeAY9addFUmk9p+PHZ0=; b=EUKrM4vq/w36WYfuJiykPQr4W/D+0iEhxZb7OMIBKivOhQ6ASHQ+3N9SUzUokfIy9EE9qOrN7Wb BqXJcdqvvd+vp6afGHDVGeQsOg7DdATNzdtv0pcAfrN2omn46dlR6OO+IhDJT95gF1YH+yDUIPOSJ m04CeKBHxf1w1RD/9vw= DKIM-Signature: v=1; a=rsa-sha256; d=elasticemail.com; s=api; c=relaxed/simple; t=1554186187; h=from:date:subject:reply-to:to:list-unsubscribe; bh=T/H1AyMcj9TSrTAjmV1lQuXDgeAY9addFUmk9p+PHZ0=; b=bIyJtW/7YxHqlxJGxLpaHL0ppTITEhi9qj/9iWjnHpAyq0BcT2QTOcASxn8x7mOb5cjjLyy1d93 KsG/oeprEtSeW2CurYycxFiFgyI6r03+WrvcMcps0Xb1Aa6h30b2Rpx7/UNcZYOvnLiR87trJRy+d I55DSpZwgNEXZCcEfmo= From: mnboos via TVM Discuss Date: Tue, 02 Apr 2019 06:23:06 +0000 Subject: [TVM Discuss] [Development] ONNX model compilation fails with a model that previously worked Message-Id: <4u75frqha6cm.yiTJDTqGNCD1kfohoLtYTw2@tracking.discuss.tvm.ai> Reply-To: mnboos via TVM Discuss Sender: mnboos via TVM Discuss To: tvm.archiver@gmail.com X-Msg-EID: yiTJDTqGNCD1kfohoLtYTw2 Feedback-ID: qz0r3x:-4pr9lq2h:ElasticEmailFBL X-Auto-Response-Suppress: All Auto-Submitted: auto-generated List-Archive: =?us-ascii?q?https=3A=2F=2Fdiscuss=2Etvm=2Eai=2Ft=2Fonnx-model-compilation-fails-with-a-?= =?us-ascii?q?model-that-previously-worked=2F2081?= MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-eZCfHWvh1AH4NuCwSe1+Yi/O2gtOwccR23WKzA==" --=-eZCfHWvh1AH4NuCwSe1+Yi/O2gtOwccR23WKzA== Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Yesterday I pulled the latest code and installed from source, which went without problems. After that, I tried to compile an MNIST onnx model as first test, which failed with the stacktrace below: The model can be downloaded here: https://we.tl/t-Tghn9o9EQ8 (md5: 9fc8b23aa4f33008360727d2fe1b0823) ``` File "/home/martin/Dev/xyz/src/tvm/compile_model.py", line 90, in compile_model graph_json, lib, params = relay.build_module.build(func=relay_func, target=target, params=params) File "/home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/relay/build_module.py", line 276, in build func = optimize(func, target, params) File "/home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/relay/build_module.py", line 203, in optimize func = ir_pass.alter_op_layout(func) File "/home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/relay/ir_pass.py", line 741, in alter_op_layout return _ir_pass.AlterOpLayout(expr) File "/home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/_ffi/_ctypes/function.py", line 190, in __call__ raise get_last_ffi_error() tvm._ffi.base.TVMError: Traceback (most recent call last): [bt] (8) /home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/libtvm.so(+0xd1c4bd) [0x7fec5b8d04bd] [bt] (7) /home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/libtvm.so(+0xba5e0d) [0x7fec5b759e0d] [bt] (6) /home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/libtvm.so(+0xba8867) [0x7fec5b75c867] [bt] (5) /home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/libtvm.so(+0xba7734) [0x7fec5b75b734] [bt] (4) /home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/libtvm.so(+0xd1d4f5) [0x7fec5b8d14f5] [bt] (3) /home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/libtvm.so(+0xcf8770) [0x7fec5b8ac770] [bt] (2) /home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/libtvm.so(+0xcf3d98) [0x7fec5b8a7d98] [bt] (1) /home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/libtvm.so(+0xcf3000) [0x7fec5b8a7000] [bt] (0) /home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/libtvm.so(+0xf2f5eb) [0x7fec5bae35eb] File "/home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/_ffi/_ctypes/function.py", line 55, in cfun rv = local_pyfunc(*pyargs) File "/home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/relay/op/nn/_nn.py", line 134, in alter_op_layout_conv2d return topi.nn.conv2d_alter_layout(attrs, inputs, tinfos, op) File "", line 2, in conv2d_alter_layout File "/home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/target.py", line 356, in dispatch_func return dispatch_dict[k](*args, **kwargs) File "/home/martin/.local/lib/python3.6/site-packages/topi-0.6.dev0-py3.6.egg/topi/x86/conv2d.py", line 297, in _alter_conv2d_layout out_channel = attrs.get_int("channels") if F == sym else attrs.get_int("channels").value AttributeError: 'NoneType' object has no attribute 'value' ``` --- [Visit Topic](https://discuss.tvm.ai/t/onnx-model-compilation-fails-with-a-model-that-previously-worked/2081/1) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/e938149c1c888572d6a2d7d9a34acbced9e8dcbecd619cf2fcd1cd964c35ed9d). Tianqi Chen, UW, Seattle, WA, 98105, United States http://tracking.discuss.tvm.ai/tracking/unsubscribe?msgid=yiTJDTqGNCD1kfohoLtYTw2 --=-eZCfHWvh1AH4NuCwSe1+Yi/O2gtOwccR23WKzA==--