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

Function TEST

tensorflow/core/framework/tensor_slice_test.cc:29–40  ·  view source on GitHub ↗

Basic tests

Source from the content-addressed store, hash-verified

27
28// Basic tests
29TEST(TensorSliceTest, Basic) {
30 {
31 // Repeatedly setting FullSlice should work.
32 TensorSlice s(3);
33 EXPECT_EQ("-:-:-", s.DebugString());
34 EXPECT_TRUE(s.IsFull());
35
36 s.SetFullSlice(4);
37 EXPECT_EQ("-:-:-:-", s.DebugString());
38 EXPECT_TRUE(s.IsFull());
39 }
40}
41
42// Testing for serialization and parsing for the string format of slices.
43TEST(TensorSliceTest, Serialization) {

Callers

nothing calls this directly

Calls 15

ParseFunction · 0.85
TensorSliceClass · 0.85
SetFullSliceMethod · 0.80
set_startMethod · 0.80
set_lengthMethod · 0.80
SliceTensorShapeMethod · 0.80
ComputeRelativeMethod · 0.80
UpdateToCoverMethod · 0.80
maxFunction · 0.50
DebugStringMethod · 0.45
IsFullMethod · 0.45
AsProtoMethod · 0.45

Tested by

no test coverage detected