Home
last modified time | relevance | path

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

/external/skqp/modules/sksg/include/
DSkSGNode.h90 #define SG_ATTRIBUTE(attr_name, attr_type, attr_container) \ argument
91 const attr_type& get##attr_name() const { return attr_container; } \
92 void set##attr_name(const attr_type& v) { \
97 void set##attr_name(attr_type&& v) { \
103 #define SG_MAPPED_ATTRIBUTE(attr_name, attr_type, attr_container) \ argument
104 attr_type get##attr_name() const { return attr_container.get##attr_name(); } \
105 void set##attr_name(const attr_type& v) { \
110 void set##attr_name(attr_type&& v) { \
/external/skia/modules/sksg/include/
DSkSGNode.h98 #define SG_ATTRIBUTE(attr_name, attr_type, attr_container) \ argument
99 const attr_type& get##attr_name() const { return attr_container; } \
100 void set##attr_name(const attr_type& v) { \
105 void set##attr_name(attr_type&& v) { \
111 #define SG_MAPPED_ATTRIBUTE(attr_name, attr_type, attr_container) \ argument
112 attr_type get##attr_name() const { return attr_container.get##attr_name(); } \
113 void set##attr_name(const attr_type& v) { \
118 void set##attr_name(attr_type&& v) { \
/external/tensorflow/tensorflow/java/src/gen/cc/
Dop_specs.cc132 StringPiece attr_type = attr_def.type(); in TypesOf() local
133 if (absl::ConsumePrefix(&attr_type, "list(")) { in TypesOf()
134 attr_type.remove_suffix(1); // remove closing brace in TypesOf()
137 if (attr_type == "string") { in TypesOf()
140 } else if (attr_type == "int") { in TypesOf()
143 } else if (attr_type == "float") { in TypesOf()
146 } else if (attr_type == "bool") { in TypesOf()
149 } else if (attr_type == "shape") { in TypesOf()
152 } else if (attr_type == "tensor") { in TypesOf()
156 } else if (attr_type == "type") { in TypesOf()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/lite/
Doperator_converter_gen.cc74 const auto attr_type = record_keeper.getClass("Attr"); in EmitOptionBuilders() local
96 if (arg_def->getDef()->isSubClassOf(attr_type)) { in EmitOptionBuilders()
116 if (record->isSubClassOf(attr_type)) { in EmitOptionBuilders()
275 const auto attr_type = record_keeper.getClass("Attr"); in EmitBuiltinOptionsToAttributes() local
292 if (arg_def->getDef()->isSubClassOf(attr_type)) { in EmitBuiltinOptionsToAttributes()
294 StringRef attr_type = mlir::tblgen::Attribute(arg_def).getAttrDefName(); in EmitBuiltinOptionsToAttributes() local
298 arg_name, attr_type); in EmitBuiltinOptionsToAttributes()
/external/tcpdump/
Dprint-radius.c381 } attr_type[]= variable
630 if (attr_type[attr_code].siz_subtypes) in print_attr_num()
634 table = attr_type[attr_code].subtypes; in print_attr_num()
649 if ( data_value <= (uint32_t)(attr_type[attr_code].siz_subtypes - 1 + in print_attr_num()
650 attr_type[attr_code].first_subtype) && in print_attr_num()
651 data_value >= attr_type[attr_code].first_subtype ) in print_attr_num()
900 if (rad_attr->type > 0 && rad_attr->type < TAM_SIZE(attr_type)) in radius_attrs_print()
901 attr_string = attr_type[rad_attr->type].name; in radius_attrs_print()
925 if (rad_attr->type < TAM_SIZE(attr_type)) in radius_attrs_print()
929 if ( attr_type[rad_attr->type].print_func ) in radius_attrs_print()
[all …]
Dprint-l2tp.c597 uint16_t attr_type; in l2tp_avp_print() local
647 attr_type = EXTRACT_16BITS(ptr); ptr++; in l2tp_avp_print()
648 ND_PRINT((ndo, "%s", tok2str(l2tp_avp2str, "AVP-#%u", attr_type))); in l2tp_avp_print()
653 switch (attr_type) { in l2tp_avp_print()
/external/tensorflow/tensorflow/python/framework/
Dpython_op_gen.cc530 StringPiece attr_type = attr.type(); in GetEagerFunctionSetup() local
540 if (absl::StartsWith(attr_type, "list(")) { in GetEagerFunctionSetup()
544 if (attr_type == "string") { in GetEagerFunctionSetup()
548 } else if (attr_type == "list(string)") { in GetEagerFunctionSetup()
552 } else if (attr_type == "int") { in GetEagerFunctionSetup()
556 } else if (attr_type == "list(int)") { in GetEagerFunctionSetup()
560 } else if (attr_type == "float") { in GetEagerFunctionSetup()
564 } else if (attr_type == "list(float)") { in GetEagerFunctionSetup()
568 } else if (attr_type == "bool") { in GetEagerFunctionSetup()
572 } else if (attr_type == "list(bool)") { in GetEagerFunctionSetup()
[all …]
/external/tensorflow/tensorflow/python/eager/
Dbackprop.py74 attr_type = pywrap_tfe.TFE_OpNameGetAttrType(h, op_type, attr_name)
75 _op_attr_type_cache[(op_type, attr_name)] = attr_type
76 return attr_type
79 def make_attr(attr_type, value): argument
86 if attr_type == int(pywrap_tfe.TF_ATTR_TYPE):
88 elif attr_type == [int(pywrap_tfe.TF_ATTR_TYPE)]:
90 elif attr_type == int(pywrap_tfe.TF_ATTR_SHAPE):
92 elif attr_type == [int(pywrap_tfe.TF_ATTR_SHAPE)]:
/external/webrtc/webrtc/p2p/base/
Dstun.cc147 uint16_t attr_type, attr_length; in ValidateMessageIntegrity() local
149 attr_type = rtc::GetBE16(&data[current_pos]); in ValidateMessageIntegrity()
150 attr_length = rtc::GetBE16(&data[current_pos + sizeof(attr_type)]); in ValidateMessageIntegrity()
153 if (attr_type == STUN_ATTR_MESSAGE_INTEGRITY) { in ValidateMessageIntegrity()
163 current_pos += sizeof(attr_type) + sizeof(attr_length) + attr_length; in ValidateMessageIntegrity()
334 uint16_t attr_type, attr_length; in Read() local
335 if (!buf->ReadUInt16(&attr_type)) in Read()
340 StunAttribute* attr = CreateAttribute(attr_type, attr_length); in Read()
/external/autotest/tko/
Djob_serializer.py409 for attr, attr_type in objdict.iteritems():
410 if attr_type == datetime:
419 self.set_attr_safely(pb_obj, attr, value, attr_type)
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dauto_parallel.cc58 AttrValue attr_type; in AddNodeDiv() local
59 attr_type.set_type(DT_FLOAT); in AddNodeDiv()
60 node->mutable_attr()->insert({"T", attr_type}); in AddNodeDiv()
Dconstant_folding.cc1176 AttrValue attr_type; in CreateNodeDef() local
1177 attr_type.set_type(tensor->dtype()); in CreateNodeDef()
1178 node->mutable_attr()->insert({"dtype", attr_type}); in CreateNodeDef()
/external/angle/src/third_party/libXNVCtrl/
DNVCtrl.c581 values->type = rep.attr_type; in XNVCTRLQueryValidTargetAttributeValues32()
582 if (rep.attr_type == ATTRIBUTE_TYPE_RANGE) { in XNVCTRLQueryValidTargetAttributeValues32()
586 if (rep.attr_type == ATTRIBUTE_TYPE_INT_BITS) { in XNVCTRLQueryValidTargetAttributeValues32()
632 values->type = rep.attr_type; in XNVCTRLQueryValidTargetStringAttributeValues()
671 values->type = rep.attr_type; in XNVCTRLQueryValidTargetAttributeValues64()
672 if (rep.attr_type == ATTRIBUTE_TYPE_RANGE) { in XNVCTRLQueryValidTargetAttributeValues64()
676 if (rep.attr_type == ATTRIBUTE_TYPE_INT_BITS) { in XNVCTRLQueryValidTargetAttributeValues64()
772 permissions->type = rep.attr_type; in QueryAttributePermissionsInternal()
Dnv_control.h341 INT32 attr_type B32;
356 INT32 attr_type B32;
382 INT32 attr_type B32;
/external/tensorflow/tensorflow/cc/framework/
Dcc_op_gen.cc327 std::pair<const char*, bool> AttrTypeName(StringPiece attr_type) { in AttrTypeName() argument
349 auto entry = attr_type_map->find(attr_type); in AttrTypeName()
351 LOG(FATAL) << "Unsupported Attr type: " << attr_type; in AttrTypeName()
357 const char* ListElementTypeName(StringPiece attr_type) { in ListElementTypeName() argument
369 auto entry = attr_list_type_map->find(attr_type); in ListElementTypeName()
371 LOG(FATAL) << "Unsupported or non-list Attr type: " << attr_type; in ListElementTypeName()
/external/scapy/scapy/layers/
Dradius.py256 attr_type = orb(_pkt[0])
257 return cls.registered_attributes.get(attr_type, cls)
Dlltd.py329 for attr_type in attr_types:
330 SPECIFIC_CLASSES[attr_type] = cls
/external/python/cpython3/Lib/test/
Dtest_sys.py560 attr_type = bool if attr == "dev_mode" else int
561 self.assertEqual(type(getattr(sys.flags, attr)), attr_type, attr)
570 attr_type = type(sys_attr)
572 attr_type()
574 attr_type.__new__(attr_type)
/external/mesa3d/src/broadcom/vulkan/
Dv3dv_pipeline.c2715 uint8_t attr_type = ATTRIBUTE_FLOAT; in get_attr_type() local
2720 attr_type = ATTRIBUTE_FLOAT; in get_attr_type()
2723 attr_type = ATTRIBUTE_HALF_FLOAT; in get_attr_type()
2731 attr_type = ATTRIBUTE_INT; in get_attr_type()
2734 attr_type = ATTRIBUTE_SHORT; in get_attr_type()
2737 attr_type = ATTRIBUTE_INT2_10_10_10; in get_attr_type()
2740 attr_type = ATTRIBUTE_BYTE; in get_attr_type()
2746 attr_type = ATTRIBUTE_BYTE; in get_attr_type()
2758 return attr_type; in get_attr_type()
/external/e2fsprogs/lib/blkid/
Dprobe.c692 unsigned int i, attr_type, val_len; in probe_ntfs() local
755 attr_type = blkid_le32(attr->type); in probe_ntfs()
765 if (attr_type == MFT_RECORD_ATTR_END) in probe_ntfs()
768 if (attr_type == MFT_RECORD_ATTR_VOLUME_NAME) { in probe_ntfs()
/external/tensorflow/tensorflow/c/
Dc_api.cc1236 #define SINGLE_CASE(kK, attr_type, size_expr) \ in TF_OperationGetAttrMetadata() argument
1240 metadata.type = attr_type; \ in TF_OperationGetAttrMetadata()
1258 #define LIST_CASE(field, attr_type, ...) \ in TF_OperationGetAttrMetadata() argument
1260 metadata.type = attr_type; \ in TF_OperationGetAttrMetadata()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_parser.cc211 AttrTy attr_type; // what type it is member
2742 AttrTy attr_type = attr_it->second.attr_type; in ParseAttributeHelper() local
2746 switch (attr_type) { in ParseAttributeHelper()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dimport_model.cc1487 auto attr_type = mlir::VectorType::get(node.op_def().output_arg_size(), in createOperation() local
1489 auto attr_value = mlir::DenseElementsAttr::get(attr_type, values); in createOperation()
/external/expat/tests/
Druntests.c1848 const XML_Char *attr_type; member
1856 const XML_Char *attr_type, in verify_attlist_decl_handler() argument
1864 if (xcstrcmp(attr_type, at->attr_type)) in verify_attlist_decl_handler()
/external/u-boot/scripts/
Dcheckpatch.pl5679 my $attr_type = $2;