How can I create TensorProto for TensorFlow in Java?
<p>Now we're using tensorflow/serving for inference. It exposes gRPC service and we can generate the Java classes from the proto file.</p>

<p>Now we can generate the <code>PreditionService</code> from <a href="https://github.com/tensorflow/serving/blob/master/tensorflow_serving/apis/prediction_service.proto" rel="nofollow">https://github.com/tensorflow/serving/blob/master/tensorflow_serving/apis/prediction_service.proto</a> but how can I construct the <code>TensorProto</code> objects from multiple dimention array.</p>

<p>We have some examples from Python ndarray and C++. It would be great if someone has tried in Java. </p>

<p>There's some work about running TensorFlow in Java. Here's the <a href="https://medium.com/google-cloud/how-to-invoke-a-trained-tensorflow-model-from-java-programs-27ed5f4f502d#.utw5gb708" rel="nofollow">blog</a> but I'm not sure if it works or how we can use it without dependencies.</p>