| 33 | } |
| 34 | |
| 35 | xla::StatusOr<xla::Literal> HostTensorToLiteral(const Tensor& host_tensor) { |
| 36 | xla::BorrowingLiteral literal; |
| 37 | TF_RETURN_IF_ERROR(HostTensorToBorrowingLiteral(host_tensor, &literal)); |
| 38 | return literal.Clone(); |
| 39 | } |
| 40 | |
| 41 | Status HostTensorToMutableBorrowingLiteral( |
| 42 | Tensor* host_tensor, xla::MutableBorrowingLiteral* literal) { |
no test coverage detected