<p dir="auto">github\tensorflow\tensorflow\contrib\lite\java\demo\app\src\main\java\com\example\android\tflitecamerademo\ImageClassifier.java<br>
Error:(152, 16) The method setNumThreads(int) is undefined for the type Interpreter</p>
<p dir="auto">TF has no analogue to <code class="notranslate">np.random.choice</code> function that chooses random element from tensor (optionally according to provided probabilities). It's especially useful in RL problems when you use epsilon-greedy exploration strategy.</p>
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3>
<p dir="auto"><a href="http://stackoverflow.com/questions/41123879/numpy-random-choice-in-tensorflow" rel="nofollow">These</a> <a href="http://stackoverflow.com/questions/37757986/weighted-random-tensor-select-in-tensorflow" rel="nofollow">two</a> solve the problem using <code class="notranslate">tf.multinomial</code>, but maybe it will be convenient to include <code class="notranslate">tf.random_choice</code> in TF API?</p>
<p dir="auto">It could be implemented through <code class="notranslate">tf.multinomial</code> , for example.</p>