* Creates a deep copy of the current Tensor. * @returns {Tensor} A new Tensor with the same type, data, and dimensions as the original.
()
| 339 | * @returns {Tensor} A new Tensor with the same type, data, and dimensions as the original. |
| 340 | */ |
| 341 | clone() { |
| 342 | return new Tensor(this.type, this.data.slice(), this.dims.slice()); |
| 343 | } |
| 344 | |
| 345 | /** |
| 346 | * Performs a slice operation on the Tensor along specified dimensions. |