codecamp

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

tf.keras.backend.l2_normalize函数

tf.keras.backend.l2_normalize(
    x,
    axis=None
)

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

在指定的轴使用 L2 范式标准化一个张量。

参数:

  • x:张量或变量。
  • axis:需要执行标准化的轴。

返回:

返回一个张量。

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