Bind the edge to another tensor * * @note If tensor is nullptr then nothing happens * * @param[in] tensor Tensor to bind the edge to */
| 146 | * @param[in] tensor Tensor to bind the edge to |
| 147 | */ |
| 148 | void update_bound_tensor(Tensor *tensor) |
| 149 | { |
| 150 | _tensor = (tensor != nullptr) ? tensor : _tensor; |
| 151 | } |
| 152 | |
| 153 | private: |
| 154 | friend class Graph; |