Module

Arithmetic

Methods

# inner addition(tensorA, tensorB) → {Tensor}

Adds two tf.Tensors element-wise, A + B. Supports broadcasting.
Parameters:
Name Type Description
tensorA Tensor The first tf.Tensor to add.
tensorB Tensor The second tf.Tensor to add. Must have the same type as TensorA.

View Source

tf.add(tensorA, tensorB)
Tensor

# inner division(tensorA, tensorB) → {Tensor}

Divides two tf.Tensors element-wise, A / B. Supports broadcasting.
Parameters:
Name Type Description
tensorA Tensor The first tensor as the numerator.
tensorB Tensor The second tensor as the denominator. Must have the same dtype as TensorA.

View Source

tf.div(tensorA, tensorB)
Tensor

# inner multiplication(tensorA, tensorB) → {Tensor}

Multiplies two tf.Tensors element-wise, A * B. Supports broadcasting.
Parameters:
Name Type Description
tensorA Tensor The first tensor to multiply.
tensorB Tensor The second tf.Tensor to multiply. Must have the same dtype as TensorA.

View Source

tf.mul(tensorA, tensorB)
Tensor

# inner subtraction(tensorA, tensorB) → {Tensor}

Subtracts two tf.Tensors element-wise, A - B. Supports broadcasting.
Parameters:
Name Type Description
tensorA Tensor The first tf.Tensor to subtract from.
tensorB Tensor The second tf.Tensor to be subtracted. Must have the same dtype as TensorA.

View Source

tf.sub(tensorA, tensorB)
Tensor