You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/05/25 08:46:46 UTC

[GitHub] [tvm] masahi commented on issue #11447: 'Expression did not evaluate to a constant' error when compiling latest tvm 0.9 on Windows 10

masahi commented on issue #11447:
URL: https://github.com/apache/tvm/issues/11447#issuecomment-1136969321

   That warning is a legit one, https://github.com/apache/tvm/blob/45f3d4a521ec476cd9960e3d2de4f66bde61bf23/src/runtime/contrib/dnnl/dnnl_json_runtime.cc#L609-L610
   
   `OC` is indeed not a constant.
   
   Instead it should be
   ```
         std::vector<float> bias(OC, 0);
         write_to_dnnl_memory(bias.data(), bias_memory, OC * sizeof(float));
   ```
   Can you try this on windows, and send a PR if it solves the issue?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org