Apologies for bringing up an old post for another question - I didn't think it 
warranted a new one and is related to this topic.

Using the propagate constant to subgraphs PR 
(https://github.com/apache/incubator-tvm/pull/5094) I've run into the stack 
overflow issue mentioned in the comments trying to compile vgg16:
```
// Define a const buffer: float const_0[64] = {1.0, 2.0, ...};
//
// Technically, you may need: static float* const_0 = (float*)malloc(4 * 64)
// to avoid possible stack overflow.
```
In the stack array example you're able to use an initializer list to initialize 
an array with values, I was just wondering if there was a similar way you had 
in mind for the array allocated on the heap?

cc @zhiics @comaniac





---
[Visit 
Topic](https://discuss.tvm.ai/t/external-codegen-constant-tensors-in-c-codegen/5890/8)
 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/883e8fe3183bc107fef6f96101fd6a614c6d53537473d014626e16e81f2aa361).

Reply via email to