| 774 | } |
| 775 | |
| 776 | Literal LiteralBase::Clone() const { |
| 777 | Literal result(shape()); |
| 778 | TF_CHECK_OK(result.CopyFrom(*this)); |
| 779 | return result; |
| 780 | } |
| 781 | |
| 782 | string LiteralBase::GetAsString(absl::Span<const int64> multi_index, |
| 783 | const ShapeIndex& shape_index) const { |