div

Applicable Products

All processors

Function Usage

Divides two tensors.

Prototype

1
div(other: Union[TensorHolder, TensorLike]) -> TensorHolder

Parameters

Parameter

Input/Output

Description

other

Input

Another tensor holder or similar tensor object.

Returns

(TensorHolder) New tensor holder of the result

Restrictions

  • If other is not a TensorHolder or TensorLike, TypeError is thrown.
  • If the operation fails or the library is unavailable, RuntimeError is thrown.
  • The / operator can be overloaded.