TensorFlow函數(shù):tf.squared_difference

2018-03-17 10:37 更新

tf.squared_difference函數(shù)

squared_difference(
    x,
    y,
    name=None
)

請參閱指南:數(shù)學>基本數(shù)學函數(shù)

返回(x - y)(x - y)元素.

注意:SquaredDifference 支持廣播.

函數(shù)參數(shù):

  • x:為一個 Tensor;必須是下列類型之一:half,bfloat16,float32,float64,int32,int64,complex64 或者 complex128.
  • y:為一個 Tensor;必須與 x 具有相同的類型.
  • name:操作的名稱(可選).

函數(shù)返回值:

tf.squared_difference函數(shù)返回一個 Tensor,它與 x 具有相同的類型.

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號