Clone clones this tensor, creating a duplicate copy of itself with its own separate memory representation of all the values, and returns that as a Tensor (which can be converted into the known type as needed).
()
| 212 | // own separate memory representation of all the values, and returns |
| 213 | // that as a Tensor (which can be converted into the known type as needed). |
| 214 | func (tsr *String) Clone() Tensor { |
| 215 | csr := NewStringShape(&tsr.Shp) |
| 216 | copy(csr.Values, tsr.Values) |
| 217 | return csr |
| 218 | } |
| 219 | |
| 220 | // CopyFrom copies all avail values from other tensor into this tensor, with an |
| 221 | // optimized implementation if the other tensor is of the same type, and |
nothing calls this directly
no test coverage detected