dboyliao
dboyliao
Check the include order of `simple_mnist.cpp` and `simple_mnist.hpp` Make sure `context.hpp` is included *before* other headers. It's a known issue, but we just don't have enough time to go through...
@metanav You just find a bug in my code generator reference counting optimizer. If you are using the `simple_mnist.pb` to generate the code, I think I'm looking at the same...
@metanav I just fix the reference counting issue for the code generator. The "tensor does not exist" issue should be gone now. You can try this at the `develop` branch...
Ok, I'll check the execution order later. Thanks!
@neil-tan I think the pb file is the `simple_mnist.pb` in our demo repo. Should be available to everyone.
@metanav I look into the generated code and uTensor source code. I can't see why the tensor is garbage collected. I have to compile and actually run it to see...
@metanav I just get it compiled on ubuntu (with docker) last week. But I'm kind of busy this week (projects on due for works). Hopefully I can get it done...
Oh, It's about @Knight-X's mem allocation optimization pass. That is, allocate the tensor at specific address (in mem pool managed by uTensor runtime).
The naming is just for illustrating the idea. Maybe we can use another more informative name.
Oh, linker scripts. Well, maybe we need a better naming. I just want to setup a script how the api would look like though. Method chaining will make the api...