codecamp

TensorFlow函数教程:tf.keras.backend.stop_gradient

tf.keras.backend.stop_gradient函数

tf.keras.backend.stop_gradient(variables)

定义在:tensorflow/python/keras/backend.py

返回variables,但每隔一个variables具有零渐变w.r.t.。

参数:

  • variables:张量或张量列表,考虑到任何其他变量的常量。

返回:

单个张量或张量列表(取决于传递的参数),相对于任何其他变量没有梯度。

TensorFlow函数教程:tf.keras.backend.std
TensorFlow回调函数:tf.keras.callbacks.BaseLogger
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定