I am using TensorFlow Java API to load a pretrained .pb file in Android. The problem is that the model requires its input to have a dtype of uint. But the tensorInferenceInterface.feed() does not allow uint arguments.
So I decided to use TF Java and create a image tensor which can be casted to dtype uint from int32.
Also, I observed some methods from GraphBuilder like cast which I think could help me out.
Could you give me any guidance on this?
I am using TensorFlow Java API to load a pretrained .pb file in Android. The problem is that the model requires its input to have a dtype of uint. But the
tensorInferenceInterface.feed()
does not allow uint arguments. So I decided to use TF Java and create a image tensor which can be casted to dtype uint from int32. Also, I observed some methods fromGraphBuilder
likecast
which I think could help me out. Could you give me any guidance on this?