/external/skia/modules/svg/include/ |
D | SkSVGNode.h | 64 #define SVG_PRES_ATTR(attr_name, attr_type, attr_inherited) \ argument 67 SkSVGProperty<attr_type, attr_inherited>>&& pr) {\ 73 const SkSVGProperty<attr_type, attr_inherited>& get##attr_name() const { \ 76 void set##attr_name(const SkSVGProperty<attr_type, attr_inherited>& v) { \ 85 void set##attr_name(SkSVGProperty<attr_type, attr_inherited>&& v) { \ 187 #define _SVG_ATTR_SETTERS(attr_name, attr_type, attr_default, set_cp, set_mv) \ argument 190 const SkSVGAttributeParser::ParseResult<attr_type>& pr) { \ 195 SkSVGAttributeParser::ParseResult<attr_type>&& pr) { \ 200 void set##attr_name(const attr_type& a) { set_cp(a); } \ 201 void set##attr_name(attr_type&& a) { set_mv(std::move(a)); } [all …]
|
/external/skqp/modules/sksg/include/ |
D | SkSGNode.h | 90 #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/ |
D | SkSGNode.h | 98 #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/webrtc/media/base/ |
D | turn_utils.cc | 86 uint16_t attr_type, attr_length; in UnwrapTurnPacket() local 87 const int kAttrHeaderLength = sizeof(attr_type) + sizeof(attr_length); in UnwrapTurnPacket() 94 attr_type = rtc::GetBE16(&packet[pos]); in UnwrapTurnPacket() 95 attr_length = rtc::GetBE16(&packet[pos + sizeof(attr_type)]); in UnwrapTurnPacket() 104 if (attr_type == STUN_ATTR_DATA) { in UnwrapTurnPacket()
|
/external/tensorflow/tensorflow/python/framework/ |
D | op_def_library.py | 768 def value_to_attr_value(value, attr_type, arg_name): # pylint: disable=invalid-name argument 782 if attr_type.startswith("list("): 786 if attr_type == "string": 788 elif attr_type == "list(string)": 790 elif attr_type == "int": 792 elif attr_type == "list(int)": 794 elif attr_type == "float": 796 elif attr_type == "list(float)": 798 elif attr_type == "bool": 800 elif attr_type == "list(bool)": [all …]
|
D | op_def_util_test.py | 68 def testConvert(self, attr_type, value, expected): argument 69 result = _op_def_util.ConvertPyObjectToAttributeType(value, attr_type) 93 def testConvertError(self, attr_type, value): argument 95 _op_def_util.ConvertPyObjectToAttributeType(value, attr_type)
|
D | python_op_gen.cc | 686 StringPiece attr_type = attr.type(); in GetEagerFunctionSetup() local 696 if (absl::StartsWith(attr_type, "list(")) { in GetEagerFunctionSetup() 700 if (attr_type == "string") { in GetEagerFunctionSetup() 704 } else if (attr_type == "list(string)") { in GetEagerFunctionSetup() 708 } else if (attr_type == "int") { in GetEagerFunctionSetup() 712 } else if (attr_type == "list(int)") { in GetEagerFunctionSetup() 716 } else if (attr_type == "float") { in GetEagerFunctionSetup() 720 } else if (attr_type == "list(float)") { in GetEagerFunctionSetup() 724 } else if (attr_type == "bool") { in GetEagerFunctionSetup() 728 } else if (attr_type == "list(bool)") { in GetEagerFunctionSetup() [all …]
|
D | op_def_util_pybind.cc | 22 py::handle ConvertAttr(py::handle value, std::string attr_type) { in ConvertAttr() argument 25 value.ptr(), ::tensorflow::AttributeTypeFromName(attr_type)); in ConvertAttr()
|
D | op_def_util.cc | 212 Safe_PyObjectPtr ConvertAttrOrNull(PyObject* value, AttributeType attr_type) { in ConvertAttrOrNull() argument 213 switch (attr_type) { in ConvertAttrOrNull() 317 std::string AttributeTypeToName(AttributeType attr_type) { in AttributeTypeToName() argument 319 if (pair.second == attr_type) { in AttributeTypeToName()
|
D | op_def_util.h | 56 std::string AttributeTypeToName(AttributeType attr_type);
|
D | python_api_parameter_converter_test.py | 149 def testConvertAttribute(self, attr_type, attr_val, expected): argument 151 {"x": attr_type}) 197 def testConvertAttributeError(self, attr_type, attr_val, message): argument 199 {"x": attr_type})
|
/external/tensorflow/tensorflow/java/src/gen/cc/ |
D | op_specs.cc | 132 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/ |
D | converter_gen.cc | 94 const auto attr_type = record_keeper.getClass("Attr"); in EmitOptionBuilders() local 116 if (arg_def->getDef()->isSubClassOf(attr_type)) { in EmitOptionBuilders() 142 if (record->isSubClassOf(attr_type)) { in EmitOptionBuilders() 274 const auto attr_type = record_keeper.getClass("Attr"); in EmitOperandNumbers() local 285 if (!arg_def->getDef()->isSubClassOf(attr_type)) { in EmitOperandNumbers() 362 const auto attr_type = record_keeper.getClass("Attr"); in EmitBuiltinOptionsToAttributes() local 379 if (arg_def->getDef()->isSubClassOf(attr_type)) { in EmitBuiltinOptionsToAttributes() 386 StringRef attr_type = mlir::tblgen::Attribute(arg_def).getAttrDefName(); in EmitBuiltinOptionsToAttributes() local 390 arg_name, attr_type); in EmitBuiltinOptionsToAttributes()
|
/external/tcpdump/ |
D | print-radius.c | 381 } 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 …]
|
D | print-l2tp.c | 597 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/webrtc/api/transport/ |
D | stun.cc | 93 static bool DesignatedExpertRange(int attr_type) { in DesignatedExpertRange() argument 94 return (attr_type >= 0x4000 && attr_type <= 0x7FFF) || in DesignatedExpertRange() 95 (attr_type >= 0xC000 && attr_type <= 0xFFFF); in DesignatedExpertRange() 244 uint16_t attr_type, attr_length; in ValidateMessageIntegrityOfType() local 246 attr_type = rtc::GetBE16(&data[current_pos]); in ValidateMessageIntegrityOfType() 247 attr_length = rtc::GetBE16(&data[current_pos + sizeof(attr_type)]); in ValidateMessageIntegrityOfType() 250 if (attr_type == mi_attr_type) { in ValidateMessageIntegrityOfType() 252 current_pos + sizeof(attr_type) + sizeof(attr_length) + attr_length > in ValidateMessageIntegrityOfType() 261 current_pos += sizeof(attr_type) + sizeof(attr_length) + attr_length; in ValidateMessageIntegrityOfType() 322 bool StunMessage::AddMessageIntegrityOfType(int attr_type, in AddMessageIntegrityOfType() argument [all …]
|
/external/skia/experimental/skrive/include/ |
D | SkRive.h | 29 #define ACTOR_ATTR(attr_name, attr_type, attr_default) \ argument 31 attr_type f##attr_name = attr_default; \ 33 const attr_type& get##attr_name() const { return f##attr_name; } \ 34 void set##attr_name(const attr_type& v) { \ 39 void set##attr_name(attr_type&& v) { \
|
/external/tensorflow/tensorflow/compiler/mlir/tfr/passes/ |
D | raise_to_tf.cc | 119 Attribute ProcessAttributeValue(Attribute attr, StringAttr attr_type) const; 298 auto attr_type = signature.getArgAttrOfType<StringAttr>( in CollectInputsAndAttributes() local 300 auto value = ProcessAttributeValue(arg_value, attr_type); in CollectInputsAndAttributes() 307 StringAttr attr_type) const { in ProcessAttributeValue() 308 if (!attr_type) return attr; in ProcessAttributeValue() 310 if (attr_type.getValue() == "tensor") { in ProcessAttributeValue()
|
/external/tensorflow/tensorflow/python/eager/ |
D | backprop.py | 78 attr_type = pywrap_tfe.TFE_OpNameGetAttrType(h, op_type, attr_name) 79 _op_attr_type_cache[(op_type, attr_name)] = attr_type 80 return attr_type 83 def make_attr(attr_type, value): argument 90 if attr_type == int(pywrap_tfe.TF_ATTR_TYPE): 92 if attr_type == [int(pywrap_tfe.TF_ATTR_TYPE)]: 94 if attr_type == int(pywrap_tfe.TF_ATTR_SHAPE): 96 if attr_type == [int(pywrap_tfe.TF_ATTR_SHAPE)]:
|
/external/autotest/tko/ |
D | job_serializer.py | 409 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/ |
D | auto_parallel.cc | 59 AttrValue attr_type; in AddNodeDiv() local 60 attr_type.set_type(DT_FLOAT); in AddNodeDiv() 61 node->mutable_attr()->insert({"T", attr_type}); in AddNodeDiv()
|
/external/angle/src/third_party/libXNVCtrl/ |
D | NVCtrl.c | 581 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()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/ |
D | legalize_hlo.cc | 962 auto attr_type = RankedTensorType::get({static_cast<int64_t>(shape.size())}, in ShapeToConst() local 964 auto attr = DenseElementsAttr::get(attr_type, shape); in ShapeToConst() 965 return rewriter.create<ConstantOp>(value.getLoc(), attr_type, attr); in ShapeToConst() 1180 auto attr_type = RankedTensorType::get({pad_op.edge_padding_low().size(), 2}, in ConvertPadOp() local 1182 auto padding_attr = DenseIntElementsAttr::get(attr_type, padding); in ConvertPadOp() 1183 auto padding_op = rewriter.create<ConstantOp>(loc, attr_type, padding_attr); in ConvertPadOp() 1219 auto attr_type = in ExpandedShape() local 1222 auto attr = DenseElementsAttr::get(attr_type, expanded_shape); in ExpandedShape() 1223 return rewriter.create<ConstantOp>(output.getLoc(), attr_type, attr); in ExpandedShape()
|
/external/tensorflow/tensorflow/c/ |
D | kernels.cc | 289 #define SINGLE_CASE(kK, attr_type, size_expr) \ in TF_OpKernelConstruction_GetAttrSize() argument 308 #define LIST_CASE(field, attr_type, ...) \ in TF_OpKernelConstruction_GetAttrSize() argument 351 #define DEFINE_TF_GETATTR(func, c_type, cc_type, attr_type, list_field) \ argument 376 tensorflow::AttrValueHasType(*attr, "list(" attr_type ")"); \
|
/external/tensorflow/tensorflow/compiler/mlir/tfr/python/ |
D | tfr_gen.py | 124 attr_type = _get_type_from_proto(arg_def, attr_def) 127 attr_type, attr_def.name, attr_def.type) 150 return str(attr_type) 152 return '{}<{}>'.format(attr_type, ','.join(attr_names)) 155 def _get_val_from_proto(attr_type, attr_val): argument 156 if attr_type == TFRTypes.I1: 158 elif attr_type == TFRTypes.I32 or attr_type == TFRTypes.I64: 160 elif attr_type == TFRTypes.F32: 162 elif attr_type == TFRTypes.ATTR: 191 attr_type, attr_val))
|