In this case we should make it a runtime array. This is also how relay handles
constants
---
[Visit
Topic](https://discuss.tvm.apache.org/t/intrinsic-function-with-constant-input-array/9955/4)
to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from
Thanks for the reply!
> If you want to inline a constant array(that is really small), you can attempt
> to use select to dispatch each index to the value.
Do you mean putting all the values I wanna pass in the C API individually?
In my case, the array size would be around 100 so I think I hav
right now constant arrays are still being processed as normal array in memory.
this requirement is due to the fact that the intrinsic function have to follow
C API convention. If you want to inline a constant array(that is really small),
you can attempt to use select to dispatch each index to
Hello, to get started I have an example code of intrinsic function like this:
```python
from __future__ import absolute_import, print_function
import tvm
from tvm import te
import numpy as np
from tvm.topi.utils import get_const_tuple
ctx = tvm.context("cpu", 0)
M = 8
factor = 4
A = te.placeho