| 78 | } |
| 79 | |
| 80 | TEST(BitcastOpTest, TestUpcast) { |
| 81 | Tensor int8_input(DT_UINT8, {8}); |
| 82 | for (int i = 0; i < 8; i++) { |
| 83 | int8_input.vec<uint8>()(i) = static_cast<uint8>(1); |
| 84 | } |
| 85 | TestBitcastOp(&int8_input, DT_UINT64, TensorShape(), error::OK); |
| 86 | } |
| 87 | |
| 88 | TEST(BitcastOpTest, TestDowncast) { |
| 89 | Tensor int64_input(static_cast<uint64>(1)); |
nothing calls this directly
no test coverage detected