tensorflow-example-java icon indicating copy to clipboard operation
tensorflow-example-java copied to clipboard

Convert a Tensor with int32 dtype to uint datatype

Open shubham0204 opened this issue 6 years ago • 0 comments

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?

shubham0204 avatar Aug 06 '19 15:08 shubham0204