however, I'm not sure the proper way use StdArrays or equivalent to take an existing byte and turn it into a TString
@killeent , try
TFRecordare basically just protos that coule be read/written directly. You can use these pregenerated bindings to do so
Featureprotos . I am actually looking if there is an API in
tensorflow/javathat does this particular job (TFRecord)
OpenCV(a preprocessed image of a symbol to be "detected") and a loaded model with session and stuff. Maybe there are some open-source examples.
Matobject to be a representation of
Tensor<Float32>and use session runner, like explained in StackOverflow answer. Am I missing something?
TFloat32is a subtype of
Tensorso you need to make one of those. The
SavedModelBundleexposes a call entry point which executes the requested function in the model (e.g. https://github.com/tensorflow/java/blob/35b73ce43cb821e5462ffc9ece51d6528dad224d/tensorflow-core/tensorflow-core-api/src/test/java/org/tensorflow/SavedModelBundleTest.java#L131).
TFloat32object from my image and pass it to
function.call(..). API says I need 4 dimensional tensor. How it can be made from 2-dimensional array like image?