Home
last modified time | relevance | path

Searched refs:dict_attr (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Lib/lib2to3/pgen2/
Dgrammar.py107 for dict_attr in ("symbol2number", "number2symbol", "dfas", "keywords",
109 setattr(new, dict_attr, getattr(self, dict_attr).copy())
/external/python/cpython2/Lib/lib2to3/pgen2/
Dgrammar.py121 for dict_attr in ("symbol2number", "number2symbol", "dfas", "keywords",
123 setattr(new, dict_attr, getattr(self, dict_attr).copy())
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Ddevice_util.cc92 mlir::DictionaryAttr dict_attr, in GetDevicesFromOp() argument
97 for (auto& kv : dict_attr) { in GetDevicesFromOp()
153 } else if (auto dict_attr = devices_attr.dyn_cast<mlir::DictionaryAttr>()) { in GetDevicesFromOp() local
154 return GetDevicesFromOp(op, dict_attr, devices); in GetDevicesFromOp()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dinsert_call_once_op.cc53 auto dict_attr = in runOnOperation() local
55 if (!dict_attr) continue; in runOnOperation()
/external/python/cpython2/Lib/test/
Dtest_functools.py369 f.dict_attr = dict(a=1, b=2, c=3)
372 wrapper.dict_attr = {}
380 self.assertEqual(wrapper.dict_attr, f.dict_attr)
432 f.dict_attr = dict(a=1, b=2, c=3)
434 f.dict_attr = {}
446 self.assertEqual(wrapper.dict_attr, f.dict_attr)
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dexport_graphdef.cc460 auto dict_attr = in Convert() local
462 if (dict_attr) { in Convert()
463 TF_RET_CHECK(dict_attr.get("inputs").isa<mlir::StringAttr>()) in Convert()
465 TF_RET_CHECK(dict_attr.get("outputs").isa<mlir::StringAttr>()) in Convert()
467 dict_attr.get("inputs").cast<mlir::StringAttr>().getValue().split( in Convert()
469 dict_attr.get("outputs").cast<mlir::StringAttr>().getValue().split( in Convert()
/external/ppp/pppd/plugins/radius/
Dradiusclient.h302 typedef struct dict_attr struct
308 struct dict_attr *next; argument
/external/tensorflow/tensorflow/compiler/mlir/lite/
Dflatbuffer_export.cc1266 auto dict_attr = fn->getAttrOfType<mlir::DictionaryAttr>("tf.entry_function"); in InitializeNamesFromAttribute() local
1267 if (!dict_attr) return; in InitializeNamesFromAttribute()
1271 if (auto str = dict_attr.get("inputs").dyn_cast_or_null<mlir::StringAttr>()) { in InitializeNamesFromAttribute()
1285 dict_attr.get("outputs").dyn_cast_or_null<mlir::StringAttr>()) { in InitializeNamesFromAttribute()
1514 auto dict_attr = module_->getAttrOfType<mlir::DictionaryAttr>("tfl.metadata"); in CreateMetadataVector() local
1516 if (dict_attr) { in CreateMetadataVector()
1517 for (const auto& named_attr : dict_attr) { in CreateMetadataVector()
1593 auto dict_attr = in BuildSignaturedef() local
1595 if (!dict_attr) return {}; in BuildSignaturedef()
1599 GetStringsFromAttrWithSeparator(dict_attr, /*attr_key=*/"inputs"); in BuildSignaturedef()
[all …]
/external/python/cpython3/Lib/test/
Dtest_functools.py662 f.dict_attr = dict(a=1, b=2, c=3)
665 wrapper.dict_attr = {}
674 self.assertEqual(wrapper.dict_attr, f.dict_attr)
681 wrapper.dict_attr = {}
687 self.assertEqual(wrapper.dict_attr, {})
689 del wrapper.dict_attr
692 wrapper.dict_attr = 1
753 f.dict_attr = dict(a=1, b=2, c=3)
755 f.dict_attr = {}
768 self.assertEqual(wrapper.dict_attr, f.dict_attr)
/external/python/cpython3/Lib/
Dinspect.py1592 dict_attr = type.__dict__["__dict__"]
1595 class_dict = dict_attr.__get__(entry)["__dict__"]
1619 dict_attr = _shadowed_dict(klass)
1620 if (dict_attr is _sentinel or
1621 type(dict_attr) is types.MemberDescriptorType):