Only needed by variable op to set the shape of an uninitialized Tensor. TODO: Remove this when we have a better story for detecting uninitialized tensors.
| 694 | // TODO: Remove this when we have a better story for detecting |
| 695 | // uninitialized tensors. |
| 696 | void set_shape(const TensorShape& shape) { |
| 697 | DataType dt = dtype(); |
| 698 | shape_ = shape; |
| 699 | set_dtype(dt); |
| 700 | } |
| 701 | |
| 702 | void CopyFromInternal(const Tensor& other, const TensorShape& shape); |
| 703 |