TensorFlow ops如 tf.cond 和 tf.while_loop 可以工作,但是用python代码写的控制流更容易编写和理解。 # Simple loop @tf.function def f(x): while tf.
確定! 回上一頁