[Apache TVM Discuss] [Questions] BYOC: Runtime access Tensor values

2020-09-07 Thread Max Sponner via Apache TVM Discuss
Ah, I guess, I found my issue. I forgot to implement the Run function. Weight tensors are initialized inside the Init function, but inputs at Run. Thank you very much --- [Visit Topic](https://discuss.tvm.apache.org/t/byoc-runtime-access-tensor-values/7802/7) to respond. You are receivi

[Apache TVM Discuss] [Questions] BYOC: Runtime access Tensor values

2020-09-07 Thread Cody H. Yu via Apache TVM Discuss
It should not happen because the example I pointed out was for data tensors. Did you set inputs before running the graph runtime? --- [Visit Topic](https://discuss.tvm.apache.org/t/byoc-runtime-access-tensor-values/7802/5) to respond. You are receiving this because you enabled mailing li

[Apache TVM Discuss] [Questions] BYOC: Runtime access Tensor values

2020-09-07 Thread Max Sponner via Apache TVM Discuss
Ok, thank you, that works, but for some reason only for constant tensors. The input tensors still have a nullpointer instead of the data field. --- [Visit Topic](https://discuss.tvm.apache.org/t/byoc-runtime-access-tensor-values/7802/4) to respond. You are receiving this because you enab

[TVM Discuss] [Questions] BYOC: Runtime access Tensor values

2020-09-02 Thread Cody H. Yu via TVM Discuss
Here is an example of Zhi's response. The expression `data_entry_[eid]->data` accesses the values of the tesnor. https://github.com/apache/incubator-tvm/blob/master/src/runtime/contrib/dnnl/dnnl_json_runtime.cc#L71 --- [Visit Topic](https://discuss.tvm.ai/t/byoc-runtime-access-tensor-valu

[TVM Discuss] [Questions] BYOC: Runtime access Tensor values

2020-09-02 Thread Zhi via TVM Discuss
The inputs are passed through NDArray in the DNNL example. You can use nd_array->data to get the data pointer. --- [Visit Topic](https://discuss.tvm.ai/t/byoc-runtime-access-tensor-values/7802/2) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe fr

[TVM Discuss] [Questions] BYOC: Runtime access Tensor values

2020-09-02 Thread Max Sponner via TVM Discuss
Hi, I am working on a BYOC backend and finally reached the runtime level. But I've looked at the DNNL JSON example (I am using JSON as well) and have not found a way to access the real tensor values to serialize them for my target. >From the JSON serialization I can access the shapes, etc, but n