-
Trying to play around with the C++ API with a compiled function, I am getting cheeky segmentation fault! Do compiled functions have to have static shaped arrays returned? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I should add that I wouldn't be surprised if the compiled function inputs and outputs must have static shapes since libraries like JAX have this expectation but wondering because it would make my implementation easier! ;) |
Beta Was this translation helpful? Give feedback.
-
Any interest in sharing the code ;). It shouldn't segfault if you do something wrong, just crash, so I would count that as a bug. Shapes have to be the same (there is an experimental shapeless compile). If you change shapes then the function will be recompiled, so it's safe, but can be costly. |
Beta Was this translation helpful? Give feedback.
Any interest in sharing the code ;). It shouldn't segfault if you do something wrong, just crash, so I would count that as a bug.
Shapes have to be the same (there is an experimental shapeless compile). If you change shapes then the function will be recompiled, so it's safe, but can be costly.