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.
1 | Tensor &operator=(const Tensor &other); |
Parameter |
Input/Output |
Description |
|---|---|---|
other |
Input |
Inputs of the tensor class |