I've had a chance to look at this now and it seems like it's quite a 
fundamental issue with C codegen, not  just ACL. This will make a lot of 
compile-time optimisations impossible as there's no reasonable way to handle 
large constant tensors in the codegen. This we be especially prevalent when 
there's a need to do a layout transform between Relay and the external codegen.

I don't have an immediate solution to this but have discussed it in some detail 
with @lhutton1. Most 'obvious' solutions don't work because of the novel way 
CSourceModules are built (you create the source file and then it only gets 
compiled during export_lib).

Can you take another look at this @comaniac and @zhiics? Our current hack of 
writing them out to a hard coded location won't be acceptable long term.





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

Reply via email to