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

Function TEST

tensorflow/core/example/feature_util_test.cc:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26const float kTolerance = 1e-5;
27
28TEST(GetFeatureValuesInt64Test, ReadsASingleValue) {
29 Example example;
30 (*example.mutable_features()->mutable_feature())["tag"]
31 .mutable_int64_list()
32 ->add_value(42);
33
34 auto tag = GetFeatureValues<protobuf_int64>("tag", example);
35
36 ASSERT_EQ(1, tag.size());
37 EXPECT_EQ(42, tag.Get(0));
38}
39
40TEST(GetFeatureValuesInt64Test, ReadsASingleValueFromFeature) {
41 Feature feature;

Callers

nothing calls this directly

Calls 15

HasFeatureFunction · 0.85
AppendFeatureValuesFunction · 0.85
SetFeatureValuesFunction · 0.85
GetFeatureFunction · 0.85
GetFeatureListFunction · 0.85
HasFeatureListFunction · 0.85
copyFunction · 0.50
sizeMethod · 0.45
GetMethod · 0.45
AddMethod · 0.45
atMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected