Skip to content

Convert a Tensor with int32 dtype to uint datatype #7

@shubham0204

Description

@shubham0204

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions