mul
Function Usage
Multiplies two tensors.
Prototype
1 | mul(other: Union[TensorHolder, TensorLike]) -> TensorHolder |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
other |
Input |
Another tensor holder or similar tensor object. |
Returns
(TensorHolder) Represents the new tensor holder of the result.
Constraints
- If other is not TensorHolder, a TypeError is thrown.
- If the operation fails or the library is unavailable, RuntimeError is thrown.
- The * operator can be overloaded.
Parent topic: TensorHolder