Home
last modified time | relevance | path

Searched refs:field_name (Results 1 – 25 of 150) sorted by relevance

123456

/external/tensorflow/tensorflow/python/autograph/pyct/
Danno.py98 def keys(node, field_name='___pyct_anno'): argument
99 if not hasattr(node, field_name):
101 return frozenset(getattr(node, field_name).keys())
104 def getanno(node, key, default=FAIL, field_name='___pyct_anno'): argument
105 if (default is FAIL or (hasattr(node, field_name) and
106 (key in getattr(node, field_name)))):
107 return getattr(node, field_name)[key]
112 def hasanno(node, key, field_name='___pyct_anno'): argument
113 return hasattr(node, field_name) and key in getattr(node, field_name)
116 def setanno(node, key, value, field_name='___pyct_anno'): argument
[all …]
/external/tensorflow/tensorflow/core/lib/strings/
Dproto_text_util.h44 void OpenNestedMessage(const char field_name[]) { in OpenNestedMessage() argument
46 field_name, " {", field_separator_); in OpenNestedMessage()
65 void AppendNumeric(const char field_name[], T value) { in AppendNumeric() argument
66 AppendFieldAndValue(field_name, StrCat(value)); in AppendNumeric()
71 void AppendNumericIfNotZero(const char field_name[], T value) { in AppendNumericIfNotZero() argument
72 if (value != 0) AppendNumeric(field_name, value); in AppendNumericIfNotZero()
76 void AppendBool(const char field_name[], bool value) { in AppendBool() argument
77 AppendFieldAndValue(field_name, value ? "true" : "false"); in AppendBool()
81 void AppendBoolIfTrue(const char field_name[], bool value) { in AppendBoolIfTrue() argument
82 if (value) AppendBool(field_name, value); in AppendBoolIfTrue()
[all …]
/external/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectsource.cc184 string field_name; in WriteMessage() local
196 field_name = field->json_name(); in WriteMessage()
212 ow->StartObject(field_name); in WriteMessage()
213 ASSIGN_OR_RETURN(tag, RenderMap(field, field_name, tag, ow)); in WriteMessage()
216 ASSIGN_OR_RETURN(tag, RenderList(field, field_name, tag, ow)); in WriteMessage()
220 RETURN_IF_ERROR(RenderField(field, field_name, ow)); in WriteMessage()
312 StringPiece field_name, ObjectWriter* ow) { in RenderTimestamp() argument
319 StrCat("Timestamp seconds exceeds limit for field: ", field_name)); in RenderTimestamp()
325 StrCat("Timestamp nanos exceeds limit for field: ", field_name)); in RenderTimestamp()
328 ow->RenderString(field_name, in RenderTimestamp()
[all …]
/external/libchrome/base/json/
Djson_value_converter.h366 void RegisterIntField(const std::string& field_name, in RegisterIntField() argument
370 field_name, field, new internal::BasicValueConverter<int>)); in RegisterIntField()
373 void RegisterStringField(const std::string& field_name, in RegisterStringField() argument
377 field_name, field, new internal::BasicValueConverter<std::string>)); in RegisterStringField()
380 void RegisterStringField(const std::string& field_name, in RegisterStringField() argument
384 field_name, field, new internal::BasicValueConverter<string16>)); in RegisterStringField()
387 void RegisterBoolField(const std::string& field_name, in RegisterBoolField() argument
391 field_name, field, new internal::BasicValueConverter<bool>)); in RegisterBoolField()
394 void RegisterDoubleField(const std::string& field_name, in RegisterDoubleField() argument
398 field_name, field, new internal::BasicValueConverter<double>)); in RegisterDoubleField()
[all …]
/external/tensorflow/tensorflow/contrib/ignite/python/ops/
Dignite_dataset_ops.py195 def __init__(self, field_name, type_id, field_id): argument
197 self.field_name = field_name
460 def _collect_types(self, field_name, data): argument
467 return TypeTreeNode(field_name, type_id)
472 return TypeTreeNode(field_name, type_id)
477 return TypeTreeNode(field_name, type_id)
482 return TypeTreeNode(field_name, type_id)
487 return TypeTreeNode(field_name, type_id)
492 return TypeTreeNode(field_name, type_id)
497 return TypeTreeNode(field_name, type_id)
[all …]
/external/ltp/testcases/kernel/syscalls/uname/
Duname04.c61 #define CHECK_FIELD(field_name) \ in try_leak_bytes() argument
62 (check_field(buf.field_name, saved_buf.field_name, \ in try_leak_bytes()
63 ARRAY_SIZE(buf.field_name), #field_name)) in try_leak_bytes()
/external/autotest/client/cros/cellular/mbim_compliance/
Dmbim_message.py105 for _, field_name, field_type in fields:
106 if field_name not in kwargs:
114 field_value = defaults.get(field_name, None)
119 field_name, cls.__name__))
122 field_values.append(kwargs.pop(field_name))
294 for _, field_name, field_type in fields:
296 field_names.append(field_name)
524 for field_name in self.__class__.get_field_names(get_all=True):
526 field_name, str(getattr(self, field_name)))
/external/webrtc/tools/python_charts/webrtc/
Ddata_helper.py40 def CreateData(self, field_name, start_frame=0, end_frame=0): argument
82 column_name = '%s_%s' % (field_name, dataset_index)
83 column_type = self.table_description[field_name][0]
101 column_name = '%s_%s' % (field_name, dataset_index)
105 self.data_list[dataset_index][row_number][field_name]
/external/u-boot/common/eeprom/
Deeprom_layout.c68 char *field_name, char *new_data) in eeprom_layout_update_field() argument
76 if (field_name == NULL) in eeprom_layout_update_field()
81 strcmp(fields[i].name, field_name)) in eeprom_layout_update_field()
86 printf("Invalid data for field %s\n", field_name); in eeprom_layout_update_field()
91 printf("No such field '%s'\n", field_name); in eeprom_layout_update_field()
/external/bcc/src/cc/frontends/clang/
Dtp_frontend_action.cc61 string& field_name) { in _get_field_kind() argument
97 field_name = field.substr(pos + 1); in _get_field_kind()
100 if (field_name.find("common_") == 0) in _get_field_kind()
103 if (field_name.find("[") != string::npos) in _get_field_kind()
148 string field_type, field_name; in GenerateTracepointStruct() local
149 switch (_get_field_kind(line, field_type, field_name)) { in GenerateTracepointStruct()
154 tp_struct += "\tint data_loc_" + field_name + ";\n"; in GenerateTracepointStruct()
157 tp_struct += "\t" + field_type + " " + field_name + ";\n"; in GenerateTracepointStruct()
/external/mesa3d/src/intel/genxml/
Dgen_bits_header.py206 def get_field(self, field_name, create=False): argument
207 if field_name not in self.fields:
209 self.fields[field_name] = Field(self, field_name)
212 return self.fields[field_name]
317 field_name = attrs.get('name', None)
318 if not field_name:
321 self.container.get_field(field_name, True).add_gen(self.gen, attrs)
/external/python/cpython3/Lib/
Dstring.py199 for literal_text, field_name, format_spec, conversion in \
207 if field_name is not None:
212 if field_name == '':
217 field_name = str(auto_arg_index)
219 elif field_name.isdigit():
230 obj, arg_used = self.get_field(field_name, args, kwargs)
292 def get_field(self, field_name, args, kwargs): argument
293 first, rest = _string.formatter_field_name_split(field_name)
/external/autotest/frontend/afe/
Dmodel_logic.py563 for field_name in data:
564 if field_name not in field_dict or data[field_name] is None:
566 field_obj = field_dict[field_name]
575 if from_val == data[field_name]:
576 data[field_name] = to_val
580 dest_obj = field_obj.rel.to.smart_get(data[field_name],
584 if (field_name != 'parameterized_job' and
586 data[field_name] = getattr(dest_obj,
589 data[field_name] = dest_obj
603 for field_name, field_obj in field_dict.iteritems():
[all …]
/external/libtextclassifier/utils/
Dflatbuffers.cc90 const StringPiece field_name) const { in GetFieldOrNull()
91 return type_->fields()->LookupByKey(field_name.data()); in GetFieldOrNull()
98 if (field->field_name() != nullptr) { in GetFieldOrNull()
99 return GetFieldOrNull(field->field_name()->str()); in GetFieldOrNull()
213 const StringPiece field_name) { in Mutable() argument
214 if (const reflection::Field* field = GetFieldOrNull(field_name)) { in Mutable()
217 TC3_LOG(ERROR) << "Unknown field: " << field_name.ToString(); in Mutable()
241 StringPiece field_name) { in Repeated() argument
242 if (const reflection::Field* field = GetFieldOrNull(field_name)) { in Repeated()
245 TC3_LOG(ERROR) << "Unknown field: " << field_name.ToString(); in Repeated()
Dflatbuffers.h191 const reflection::Field* GetFieldOrNull(const StringPiece field_name) const;
208 bool Set(StringPiece field_name, T value) { in Set() argument
209 if (const reflection::Field* field = GetFieldOrNull(field_name)) { in Set()
253 ReflectiveFlatbuffer* Mutable(StringPiece field_name);
259 RepeatedField* Repeated(StringPiece field_name);
268 TypedRepeatedField<T>* Repeated(StringPiece field_name) { in Repeated() argument
269 return static_cast<TypedRepeatedField<T>*>(Repeated(field_name)); in Repeated()
/external/perfetto/tools/ftrace_proto_gen/
Dftrace_proto_gen.cc174 std::string field_name = EventNameToProtoFieldName(event.name()); in GenerateFtraceEventProto() local
178 if (4 + type_name.size() + 1 + field_name.size() + 3 + 3 + 1 <= 80) { in GenerateFtraceEventProto()
180 *fout << " " << type_name << " " << field_name << " = " << i << ";\n"; in GenerateFtraceEventProto()
181 } else if (4 + type_name.size() + 1 + field_name.size() + 2 <= 80) { in GenerateFtraceEventProto()
183 *fout << " " << type_name << " " << field_name << " =\n " << i in GenerateFtraceEventProto()
187 *fout << " " << type_name << "\n " << field_name << " = " << i in GenerateFtraceEventProto()
/external/tensorflow/tensorflow/core/framework/
Dattr_value_util.cc376 string field_name; in ParseAttrValue() local
379 field_name = "s"; in ParseAttrValue()
381 field_name = "i"; in ParseAttrValue()
383 field_name = "f"; in ParseAttrValue()
385 field_name = "b"; in ParseAttrValue()
387 field_name = "type"; in ParseAttrValue()
389 field_name = "shape"; in ParseAttrValue()
391 field_name = "tensor"; in ParseAttrValue()
393 field_name = "func"; in ParseAttrValue()
395 field_name = "placeholder"; in ParseAttrValue()
[all …]
/external/python/cpython3/Objects/stringlib/
Dunicode_format.h547 parse_field(SubString *str, SubString *field_name, SubString *format_spec, in parse_field() argument
562 field_name->str = str->str; in parse_field()
563 field_name->start = str->start; in parse_field()
584 field_name->end = str->start - 1; in parse_field()
669 int *field_present, SubString *field_name, in MarkupIterator_next() argument
681 SubString_init(field_name, NULL, 0, 0); in MarkupIterator_next()
749 if (!parse_field(&self->str, field_name, format_spec, in MarkupIterator_next()
799 output_markup(SubString *field_name, SubString *format_spec, in output_markup() argument
811 fieldobj = get_field_object(field_name, args, kwargs, auto_number); in output_markup()
869 SubString field_name; in do_markup() local
[all …]
/external/python/cpython2/Objects/stringlib/
Dstring_format.h635 parse_field(SubString *str, SubString *field_name, SubString *format_spec, in parse_field() argument
650 field_name->ptr = str->ptr; in parse_field()
665 field_name->end = str->ptr-1; in parse_field()
695 field_name->end = str->ptr; in parse_field()
724 int *field_present, SubString *field_name, in MarkupIterator_next() argument
737 SubString_init(field_name, NULL, 0); in MarkupIterator_next()
825 if (parse_field(&s, field_name, format_spec, conversion) == 0) in MarkupIterator_next()
882 output_markup(SubString *field_name, SubString *format_spec, in output_markup() argument
894 fieldobj = get_field_object(field_name, args, kwargs, auto_number); in output_markup()
953 SubString field_name; in do_markup() local
[all …]
/external/pdfium/third_party/libtiff/
Dtif_dirinfo.c327 strncmp("Tag ", fld->field_name, 4) == 0) { in _TIFFSetupFields()
328 _TIFFfree(fld->field_name); in _TIFFSetupFields()
361 int ret = strcmp(ta->field_name, tb->field_name); in tagNameCompare()
431 , fip->field_name in _TIFFPrintFieldInfo()
533 _TIFFFindFieldByName(TIFF* tif, const char *field_name, TIFFDataType dt) in _TIFFFindFieldByName() argument
539 && streq(tif->tif_foundfield->field_name, field_name) in _TIFFFindFieldByName()
549 key.field_name = (char *)field_name; in _TIFFFindFieldByName()
572 TIFFFieldWithName(TIFF* tif, const char *field_name) in TIFFFieldWithName() argument
575 _TIFFFindFieldByName(tif, field_name, TIFF_ANY); in TIFFFieldWithName()
578 "Internal error, unknown tag %s", field_name); in TIFFFieldWithName()
[all …]
/external/protobuf/python/google/protobuf/internal/
Dpython_message.py452 def _ReraiseTypeErrorWithFieldName(message_name, field_name): argument
457 exc = TypeError('%s for field %s.%s' % (str(exc), message_name, field_name))
495 for field_name, field_value in kwargs.items():
496 field = _GetFieldByName(message_descriptor, field_name)
499 (message_descriptor.name, field_name))
532 _ReraiseTypeErrorWithFieldName(message_descriptor.name, field_name)
538 setattr(self, field_name, field_value)
540 _ReraiseTypeErrorWithFieldName(message_descriptor.name, field_name)
547 def _GetFieldByName(message_descriptor, field_name): argument
557 return message_descriptor.fields_by_name[field_name]
[all …]
/external/autotest/scheduler/shard/
Dshard_client_integration_tests.py69 def _local_update_field(hqe, field_name, value): argument
71 if field_name == 'complete':
74 **{field_name: value})
75 setattr(hqe, field_name, value)
/external/grpc-grpc/tools/gcp/utils/
Dbig_query_utils.py65 'name': field_name,
68 } for (field_name, field_type, field_description) in table_schema]
85 'name': field_name,
88 } for (field_name, field_type, field_description) in table_schema]
/external/protobuf/ruby/tests/
Drepeated_field_test.rb29 repeated_field_names(TestMessage).each do |field_name|
30 assert_nil m.send(field_name).first
49 repeated_field_names(TestMessage).each do |field_name|
50 assert_nil m.send(field_name).first
69 repeated_field_names(TestMessage).each do |field_name|
70 assert_nil m.send(field_name).pop
96 repeated_field_names(TestMessage).each do |field_name|
97 assert_nil m.send(field_name).pop
176 %w(repeated_int32 repeated_int64 repeated_uint32 repeated_uint64).each do |field_name|
177 m.send(field_name)[3] = 10
[all …]
/external/protobuf/src/google/protobuf/compiler/java/
Djava_helpers.cc74 bool IsForbidden(const string& field_name) { in IsForbidden() argument
76 if (field_name == kForbiddenWordList[i]) { in IsForbidden()
84 string field_name; in FieldName() local
89 field_name = field->message_type()->name(); in FieldName()
91 field_name = field->name(); in FieldName()
93 if (IsForbidden(field_name)) { in FieldName()
96 field_name += "#"; in FieldName()
98 return field_name; in FieldName()

123456