I want to offload set of functions to my custom kernel, though graph partitioning work perfectly it’s offloading the operations to a single function but the codegen failed to generate C code. It failed in calling root node with this error
InternalError: Check failed: (0 <= i && i < p->size_) is false: IndexError: indexing 2 on an array of size 2
This is my given pattern
- pat = is_op(“multiply”)(wildcard(),wildcard())
-
pat3 = is_op("multiply")(wildcard(),wildcard())
-
pat = is_op("add")(pat,pat3)
Is it possible to offload these set of function and generate a C code using codegen? They are quite different from the composite function like nn.conv and nn.dense? Secondly I am using C runtime not Json. Any help or guideline thank you in Advance