| 69 | }; |
| 70 | |
| 71 | XLA_TEST_F(TransferManagerTest, TransferR0U32) { |
| 72 | Literal literal = LiteralUtil::CreateR0<uint32>(42); |
| 73 | const Shape& shape = literal.shape(); |
| 74 | auto device_buffer = AllocateDeviceBuffer(shape); |
| 75 | |
| 76 | // Round trip literal through device. |
| 77 | ASSERT_IS_OK(transfer_manager_->TransferLiteralToDevice(stream_, literal, |
| 78 | device_buffer)); |
| 79 | TF_ASSERT_OK_AND_ASSIGN( |
| 80 | Literal result, |
| 81 | transfer_manager_->TransferLiteralFromDevice(stream_, device_buffer)); |
| 82 | |
| 83 | LiteralTestUtil::ExpectR0Equal<uint32>(42, result); |
| 84 | } |
| 85 | |
| 86 | XLA_TEST_F(TransferManagerTest, TransferR1F32) { |
| 87 | Literal literal = |
nothing calls this directly
no test coverage detected