Why does my android build not run or load the neural network I've used in my android game?

I’m trying to run a neural network in an android game on unity. It is a light-weight mobilenet .onnx model. When I run it in game mode on the unity engine it works perfectly, but when I build and run it on my android device the neural network part of it doesn’t seem to exist.

What I’m trying to do is use the output of the neural network to set the position of a cube in the scene. In game-mode, this works well. When building and running on my phone, the cube stays in its default position.

I’m using Barracuda for the model execution.

Has anyone else faced this issue? Would appreciate any help.

I am using the same software to load Pytorch’ ResNet18 with a .onnx file. Works fine in editor, app crashes in android.