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

Function TEST

tensorflow/core/util/saved_tensor_slice_util_test.cc:31–41  ·  view source on GitHub ↗

Testing serialization of tensor name and tensor slice in the ordered code format.

Source from the content-addressed store, hash-verified

29// Testing serialization of tensor name and tensor slice in the ordered code
30// format.
31TEST(TensorShapeUtilTest, TensorNameSliceToOrderedCode) {
32 {
33 TensorSlice s = TensorSlice::ParseOrDie("-:-:1,3:4,5");
34 string buffer = EncodeTensorNameSlice("foo", s);
35 string name;
36 s.Clear();
37 TF_CHECK_OK(DecodeTensorNameSlice(buffer, &name, &s));
38 EXPECT_EQ("foo", name);
39 EXPECT_EQ("-:-:1,3:4,5", s.DebugString());
40 }
41}
42
43} // namespace
44

Callers

nothing calls this directly

Calls 4

EncodeTensorNameSliceFunction · 0.85
DecodeTensorNameSliceFunction · 0.85
ClearMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected