CopyShapeFrom copies just the shape from given source tensor calling SetShape with the shape params from source (see for more docs).
(frm Tensor)
| 234 | // CopyShapeFrom copies just the shape from given source tensor |
| 235 | // calling SetShape with the shape params from source (see for more docs). |
| 236 | func (tsr *String) CopyShapeFrom(frm Tensor) { |
| 237 | tsr.SetShape(frm.Shape().Sizes, frm.Shape().Names...) |
| 238 | } |
| 239 | |
| 240 | // CopyCellsFrom copies given range of values from other tensor into this tensor, |
| 241 | // using flat 1D indexes: to = starting index in this Tensor to start copying into, |