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

Function TEST_F

tensorflow/core/kernels/parse_tensor_test.cc:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75};
76
77TEST_F(SerializeTensorOpTest, SerializeTensorOpTest_half) {
78 MakeOp<Eigen::half>(TensorShape({10}), [](int x) -> Eigen::half {
79 return static_cast<Eigen::half>(x / 10.);
80 });
81 TF_ASSERT_OK(RunOpKernel());
82 Tensor parse_output;
83 ParseSerializedOutput<Eigen::half>(GetOutput(0), &parse_output);
84 test::ExpectTensorEqual<Eigen::half>(parse_output, GetInput(0));
85}
86
87TEST_F(SerializeTensorOpTest, SerializeTensorOpTest_float) {
88 MakeOp<float>(TensorShape({1, 10}),

Callers

nothing calls this directly

Calls 4

GetOutputFunction · 0.85
GetInputFunction · 0.85
to_stringFunction · 0.85
TensorShapeClass · 0.50

Tested by

no test coverage detected