擅长:python、mysql、java
<p><code>tf.select</code>也不再工作,如此线程所示
<a href="https://github.com/tensorflow/tensorflow/issues/8647" rel="noreferrer">https://github.com/tensorflow/tensorflow/issues/8647</a></p>
<p>对我有用的东西是<code>tf.where</code></p>
<pre><code>condition = tf.greater(x, 0)
res = tf.where(condition, tf.square(x), x + 5)
</code></pre>