Home
last modified time | relevance | path

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

/external/skia/modules/sksg/include/
DSkSGNode.h93 #define SG_ATTRIBUTE(attr_name, attr_type, attr_container) \ argument
94 const attr_type& get##attr_name() const { return attr_container; } \
95 void set##attr_name(const attr_type& v) { \
100 void set##attr_name(attr_type&& v) { \
106 #define SG_MAPPED_ATTRIBUTE(attr_name, attr_type, attr_container) \ argument
107 attr_type get##attr_name() const { return attr_container.get##attr_name(); } \
108 void set##attr_name(const attr_type& v) { \
113 void set##attr_name(attr_type&& v) { \
/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/tensorflow/tensorflow/java/src/gen/cc/
Dop_specs.cc132 StringPiece attr_type = attr_def.type(); in TypesOf() local
133 if (str_util::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/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.cc480 StringPiece attr_type = attr.type(); in GetEagerFunctionSetup() local
490 if (str_util::StartsWith(attr_type, "list(")) { in GetEagerFunctionSetup()
494 if (attr_type == "string") { in GetEagerFunctionSetup()
498 } else if (attr_type == "list(string)") { in GetEagerFunctionSetup()
502 } else if (attr_type == "int") { in GetEagerFunctionSetup()
506 } else if (attr_type == "list(int)") { in GetEagerFunctionSetup()
510 } else if (attr_type == "float") { in GetEagerFunctionSetup()
514 } else if (attr_type == "list(float)") { in GetEagerFunctionSetup()
518 } else if (attr_type == "bool") { in GetEagerFunctionSetup()
522 } else if (attr_type == "list(bool)") { in GetEagerFunctionSetup()
[all …]
Dop_def_library.py244 attr_type = _Attr(op_def, arg.type_attr).type
245 if attr_type != "type":
248 (arg.type_attr, op_def.name, attr_type))
250 attr_type = _Attr(op_def, arg.type_list_attr).type
251 if attr_type != "list(type)":
254 (arg.type_attr, op_def.name, attr_type))
256 attr_type = _Attr(op_def, arg.number_attr).type
257 if attr_type != "int":
260 (arg.number_attr, op_def.name, attr_type))
/external/tensorflow/tensorflow/python/eager/
Dbackprop.py69 attr_type = pywrap_tensorflow.TFE_OpNameGetAttrType(h, op_type, attr_name)
70 _op_attr_type_cache[(op_type, attr_name)] = attr_type
71 return attr_type
74 def make_attr(attr_type, value): argument
75 if attr_type == pywrap_tensorflow.TF_ATTR_TYPE:
77 elif attr_type == [pywrap_tensorflow.TF_ATTR_TYPE]:
79 elif attr_type == pywrap_tensorflow.TF_ATTR_SHAPE:
81 elif attr_type == [pywrap_tensorflow.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/tensorflow/tensorflow/tools/graph_transforms/
Dfuse_quantized_convolution.cc202 AttrValue attr_type; in FuseQuantizedConvolutionAndRequantize() local
203 attr_type.set_type(int32_tensor.dtype()); in FuseQuantizedConvolutionAndRequantize()
204 bias_node->mutable_attr()->insert({"dtype", attr_type}); in FuseQuantizedConvolutionAndRequantize()
/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.cc1072 AttrValue attr_type; in CreateNodeDef() local
1073 attr_type.set_type(tensor->dtype()); in CreateNodeDef()
1074 node->mutable_attr()->insert({"dtype", attr_type}); in CreateNodeDef()
/external/tensorflow/tensorflow/cc/framework/
Dcc_op_gen.cc305 std::pair<const char*, bool> AttrTypeName(StringPiece attr_type) { in AttrTypeName() argument
327 auto entry = attr_type_map->find(attr_type); in AttrTypeName()
329 LOG(FATAL) << "Unsupported Attr type: " << attr_type; in AttrTypeName()
335 const char* ListElementTypeName(StringPiece attr_type) { in ListElementTypeName() argument
347 auto entry = attr_list_type_map->find(attr_type); in ListElementTypeName()
349 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.py533 attr_type = bool if attr == "dev_mode" else int
534 self.assertEqual(type(getattr(sys.flags, attr)), attr_type, attr)
543 attr_type = type(sys_attr)
545 attr_type()
547 attr_type.__new__(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.cc1649 #define SINGLE_CASE(kK, attr_type, size_expr) \ in TF_OperationGetAttrMetadata() argument
1653 metadata.type = attr_type; \ in TF_OperationGetAttrMetadata()
1671 #define LIST_CASE(field, attr_type, ...) \ in TF_OperationGetAttrMetadata() argument
1673 metadata.type = attr_type; \ in TF_OperationGetAttrMetadata()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_parser.cc204 AttrTy attr_type; // what type it is member
2668 AttrTy attr_type = attr_it->second.attr_type; in ParseAttributeHelper() local
2672 switch (attr_type) { in ParseAttributeHelper()
/external/expat/tests/
Druntests.c2006 const XML_Char *attr_type; member
2015 const XML_Char *attr_type, in verify_attlist_decl_handler() argument
2025 if (xcstrcmp(attr_type, at->attr_type)) in verify_attlist_decl_handler()
/external/u-boot/scripts/
Dcheckpatch.pl5494 my $attr_type = $2;