How can I create TensorProto for TensorFlow in Java?
问题 Now we're using tensorflow/serving for inference. It exposes gRPC service and we can generate the Java classes from the proto file. Now we can generate the PreditionService from https://github.com/tensorflow/serving/blob/master/tensorflow_serving/apis/prediction_service.proto but how can I construct the TensorProto objects from multiple dimention array. We have some examples from Python ndarray and C++. It would be great if someone has tried in Java. There's some work about running TensorFlow