<p dir="auto">I am trying to run an LSTM built with the Python API, exported to to protobuf, and evaluated in Java. After I updated my python scripts to use <code class="notranslate">tf.contrib.rnn.LSTMBlockCell</code>, <code class="notranslate">LSTMBlockFusedCell</code>, etc cell implementations, the Java portion stopped working and started throwing:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.tensorflow.TensorFlowException: org.tensorflow.TensorFlowException: Op type not registered 'BlockLSTM' in binary running on xubuntu. Make sure the Op and Kernel are registered in the binary running in this process."><pre class="notranslate"><code class="notranslate">org.tensorflow.TensorFlowException: org.tensorflow.TensorFlowException: Op type not registered 'BlockLSTM' in binary running on xubuntu. Make sure the Op and Kernel are registered in the binary running in this process.
</code></pre></div>
<p dir="auto">and</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.tensorflow.TensorFlowException: org.tensorflow.TensorFlowException: Op type not registered 'LSTMBlockCell' in binary running on xubuntu. Make sure the Op and Kernel are registered in the binary running in this process."><pre class="notranslate"><code class="notranslate">org.tensorflow.TensorFlowException: org.tensorflow.TensorFlowException: Op type not registered 'LSTMBlockCell' in binary running on xubuntu. Make sure the Op and Kernel are registered in the binary running in this process.
</code></pre></div>
<p dir="auto">Evaluating the graph in Python works swimmingly. I didn't see anything on stack overflow. There are a couple tickets on github which might be related: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="246332766" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/11847" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/11847/hovercard" href="https://github.com/tensorflow/tensorflow/issues/11847">#11847</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="252698139" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/12566" data-hovercard-type="pull_request" data-hovercard-url="/tensorflow/tensorflow/pull/12566/hovercard" href="https://github.com/tensorflow/tensorflow/pull/12566">#12566</a></p>
<p dir="auto">TF Version (Java and python): 1.3.0<br>
Python Version: 2.7</p>
<hr>
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Mac OS 10.12</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: Binary</li>
<li><strong>TensorFlow version (use command below)</strong>: Tried with both 1.1.0 and 1.2.0-rc1</li>
<li><strong>CUDA/cuDNN version</strong>: Running on CPU</li>
</ul>
<p dir="auto">I have SavedModel using TensorForestEstimator (RandomForest) by using export_savedmodel() it was saved successfully and able to load from SavedModel-cli too. But when trying to load using</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="val SAVED_MODEL_PATH =
      &quot;/Users/Documents/tensordata/1496652787&quot;;
    val bundle = SavedModelBundle.load(SAVED_MODEL_PATH, &quot;serve&quot;);"><pre class="notranslate"><code class="notranslate">val SAVED_MODEL_PATH =
      "/Users/Documents/tensordata/1496652787";
    val bundle = SavedModelBundle.load(SAVED_MODEL_PATH, "serve");
</code></pre></div>
<p dir="auto">It's giving following error -:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Exception in thread &quot;main&quot; org.tensorflow.TensorFlowException: Op type not registered 'TreePredictions'
	at org.tensorflow.SavedModelBundle.load(Native Method)
	at org.tensorflow.SavedModelBundle.load(SavedModelBundle.java:38)
	at ai.tenten.ml.ClassifyITCase$.main(ClassifyITCase.scala:59)"><pre class="notranslate"><code class="notranslate">Exception in thread "main" org.tensorflow.TensorFlowException: Op type not registered 'TreePredictions'
	at org.tensorflow.SavedModelBundle.load(Native Method)
	at org.tensorflow.SavedModelBundle.load(SavedModelBundle.java:38)
	at ai.tenten.ml.ClassifyITCase$.main(ClassifyITCase.scala:59)
</code></pre></div>
<p dir="auto">I am able to load Other saved models like HalfPlusTwo Regression and mnist dense Predict model successfully. Only in RandomForest It's giving error I thing some op is missing from build or Java API is not updated.</p>