Home | History | Annotate | Download | only in example

Lines Matching refs:feature

21 Feature& ExampleFeature(const string& name, Example* example) {
29 return (features.feature().find(key) != features.feature().end());
34 auto it = features.feature().find(key);
35 return (it != features.feature().end()) &&
36 (it->second.kind_case() == Feature::KindCase::kInt64List);
41 auto it = features.feature().find(key);
42 return (it != features.feature().end()) &&
43 (it->second.kind_case() == Feature::KindCase::kFloatList);
48 auto it = features.feature().find(key);
49 return (it != features.feature().end()) &&
50 (it->second.kind_case() == Feature::KindCase::kBytesList);
61 const Feature& feature) {
62 return feature.int64_list().value();
67 Feature* feature) {
68 return feature->mutable_int64_list()->mutable_value();
73 const Feature& feature) {
74 return feature.float_list().value();
78 protobuf::RepeatedField<float>* GetFeatureValues<float>(Feature* feature) {
79 return feature->mutable_float_list()->mutable_value();
84 const Feature& feature) {
85 return feature.bytes_list().value();
89 protobuf::RepeatedPtrField<string>* GetFeatureValues<string>(Feature* feature) {
90 return feature->mutable_bytes_list()->mutable_value();
93 const protobuf::RepeatedPtrField<Feature>& GetFeatureList(
95 return sequence_example.feature_lists().feature_list().at(key).feature();
98 protobuf::RepeatedPtrField<Feature>* GetFeatureList(
127 const Feature& feature);
131 Feature* feature);
135 const Feature& feature);
138 protobuf::RepeatedField<float>* GetFeatureValues<float>(Feature* feature);
142 const Feature& feature);
145 protobuf::RepeatedPtrField<string>* GetFeatureValues<string>(Feature* feature);