asus4 / tf-lite-unity-sample

TensorFlow Lite Samples on Unity
834 stars 249 forks source link

Best Way to handle null values in Input Tensor #300

Closed rajandeepsingh13 closed 1 year ago

rajandeepsingh13 commented 1 year ago

Environment (please complete the following information):

Describe the bug I am not sure how to pass an Input Tensor that has null values to the Interpreter. My current input is formatted as float?[,,] 3D array but that gives me an "ArgumentException: Object must be an array of primitives." error. What would be the best way to represent an input tensor with null values?

Error message Here is the complete error: image