MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/c/kernels/bitcast_op_test.cc:80–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80TEST(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
88TEST(BitcastOpTest, TestDowncast) {
89 Tensor int64_input(static_cast<uint64>(1));

Callers

nothing calls this directly

Calls 12

TestBitcastOpFunction · 0.85
NodeDefBuilderClass · 0.85
SFunction · 0.70
outputMethod · 0.65
TensorShapeClass · 0.50
FakeInputFunction · 0.50
LookUpMethod · 0.45
FinalizeMethod · 0.45
InputMethod · 0.45
AttrMethod · 0.45
inputMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected