\brief Copy the other tensor into this tensor and reshape it. This tensor shares other's underlying storage. Returns `true` iff `other.shape()` has the same number of elements of the given `shape`.
| 312 | /// iff `other.shape()` has the same number of elements of the given |
| 313 | /// `shape`. |
| 314 | bool CopyFrom(const Tensor& other, |
| 315 | const TensorShape& shape) TF_MUST_USE_RESULT { |
| 316 | if (other.NumElements() != shape.num_elements()) return false; |
| 317 | CopyFromInternal(other, shape); |
| 318 | return true; |
| 319 | } |
| 320 | |
| 321 | /// \brief Slice this tensor along the 1st dimension. |
| 322 |