operator =
Function Usage
Reloads the equal sign (=) operator to perform a deep copy between member variables and shallow copy between memory data. During the process, the reference counting increases by one.
Prototype
1 | Tensor &operator=(const Tensor &other); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
other |
Input |
Inputs of the tensor class |
Parent topic: Tensor