From commits-return-10582-archive-asf-public=cust-asf.ponee.io@tvm.apache.org Mon Apr 6 20:22:26 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 CFFC9180647 for ; Mon, 6 Apr 2020 22:22:25 +0200 (CEST) Received: (qmail 90748 invoked by uid 500); 6 Apr 2020 20:22:25 -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 90739 invoked by uid 99); 6 Apr 2020 20:22:25 -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; Mon, 06 Apr 2020 20:22:25 +0000 From: GitBox To: commits@tvm.apache.org Subject: [GitHub] [incubator-tvm] masahi commented on issue #5243: [Frontend][TensorFlow]Improve TensorFlow Static Shape Tensor Array Message-ID: <158620454511.14495.10827074331084288731.gitbox@gitbox.apache.org> References: In-Reply-To: Date: Mon, 06 Apr 2020 20:22:25 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit masahi commented on issue #5243: [Frontend][TensorFlow]Improve TensorFlow Static Shape Tensor Array URL: https://github.com/apache/incubator-tvm/pull/5243#issuecomment-610016636 > @masahi You can use [tensor_get_data](https://github.com/apache/incubator-tvm/blob/master/python/tvm/relay/prelude.py#L515) to achieve this Ah thanks. I tried to use it on the output of stack, but since the first axis is 'Any', I don't know how to pass `shape` param in `get_var_static('tensor_get_data', "float32", shape)`. How do I do it? A better question might be, why do we need to pass `shape` all over the place? I'd imagine, intuitively stack and other ops that operate on already existing tensor array should be able to figure out the shape, no? ---------------------------------------------------------------- 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