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

Function TEST

tensorflow/core/framework/tensor_test.cc:80–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78namespace {
79
80TEST(TensorTest, Default) {
81 Tensor t;
82 EXPECT_EQ(t.dtype(), DT_FLOAT);
83 EXPECT_EQ(t.dims(), 1);
84 EXPECT_EQ(t.NumElements(), 0);
85}
86
87TEST(TensorTest, DataType_Traits) {
88 EXPECT_TRUE(std::is_trivial<float>::value);

Callers

nothing calls this directly

Calls 15

acosClass · 0.85
set_shapeFunction · 0.85
AsProtoFieldMethod · 0.80
sliceMethod · 0.80
IsAlignedMethod · 0.80
SubSliceMethod · 0.80
SummarizeValueMethod · 0.80
tensor_dataMethod · 0.80
TensorShapeClass · 0.70
AsTensorFunction · 0.70
StrCatFunction · 0.50
halfClass · 0.50

Tested by

no test coverage detected