Home
last modified time | relevance | path

Searched full:type_alias (Results 1 – 25 of 37) sorted by relevance

12

/external/executorch/exir/dialects/edge/spec/
Dutils.py164 def update_type_alias(type_alias: Dict[Tuple[str], int], new_key: Tuple[str]) -> None:
165 """Update type_alias with new type alias"""
166 if new_key not in type_alias:
167 type_alias[new_key] = len(type_alias)
171 type_alias: Dict[Tuple[str], int], type_constraint: List[List[int]]
174type_alias ('Double',): 0, ('Int',): 1, output will be {(0, 1): ['Double', 'Int', 'Double', 'Int']…
190 # key is type_alias value which is alias index
191 alias = next(k for k, v in type_alias.items() if v == key)
199 type_alias: Dict[Tuple[str], int],
212 tuple([type_alias[(type_info,)]] * length) for type_info in new_alias
[all …]
Dgen.py302 self.type_alias, self.type_constraint = type_aggregrate(allowed_types)
312 for i, ts in enumerate(self.type_alias)
326 "type_alias": type_alias_yaml,
345 my_str += "type_alias: {}\n".format(self.type_alias)
/external/executorch/exir/dialects/edge/
Dedge.yaml9 type_alias:
18 type_alias:
27 type_alias:
70 type_alias:
79 type_alias:
92 type_alias:
105 type_alias:
245 type_alias:
560 type_alias:
864 type_alias:
[all …]
D_ops.py73 type_alias: Dict of type alias name to corresponding list of dtypes.
81 type_alias: Dict[str, List[torch.dtype]],
86 self.type_alias: Dict[str, AllowedDtypeSet] = {
87 alias: AllowedDtypeSet(set(types)) for alias, types in type_alias.items()
131 # Narrow down the type_alias based on contraint and actual input
137 elif arg_type in self.type_alias[constraint[arg_name]]:
138 self.type_alias[constraint[arg_name]].reduce_to(arg_type)
143 for alias in self.type_alias.values():
161 valid_dtype = self.type_alias[constraint[arg_name]].types | valid_dtype
225 type_alias = {
[all …]
/external/pytorch/torchgen/executorch/
Dparse.py24 ET_FIELDS = ["kernels", "type_alias", "dim_order_alias"]
32 ei: Dict keys {kernels, type_alias, dim_order_alias}
39 type_alias: dict[str, list[str]] = e.pop("type_alias", {}) # type: ignore[assignment]
64 … else ETKernelKey.gen_from_yaml(arg_meta, type_alias, dim_order_alias) # type: ignore[arg-type]
Dmodel.py91 for type_alias, dim_order in args.values():
94 assert type_alias in type_alias_map, "Undefined type alias: " + str(
95 type_alias
100 dtype_alias_used.add(type_alias)
/external/executorch/exir/dialects/edge/test/
Dtest_edge_yaml.py46 if op_yaml_key == "type_alias":
109 example_yaml_info.type_alias,
145 example_yaml_info.type_alias,
163 self.assertEqual(ret.type_alias, [("Double", "Float", "Half")])
178 ret.type_alias,
Dtest_edge_ops.py43 "type_alias": {
144 self.assertTrue(isinstance(edge_foo_schema.dtype_constraint.type_alias, dict))
145 for key, value in edge_foo_schema.dtype_constraint.type_alias.items():
/external/llvm/test/CodeGen/MIR/X86/
Dgeneric-virtual-registers.mir9 %type_alias = type <2 x i32>
41 %2(64) = G_ADD %type_alias %edi, %edi
/external/pytorch/torch/csrc/jit/ir/
Dirparser.cpp134 auto type_alias = type_parser.parseType(); in parseVarWithType() local
135 AT_ASSERTM(!type_alias.second, "Parsing IR with Alias Info not handled"); in parseVarWithType()
136 r.type = type_alias.first; in parseVarWithType()
176 std::pair<TypePtr, std::optional<c10::AliasInfo>> type_alias; in parseScalarLiteral() local
242 type_alias = type_parser.parseType(); in parseScalarLiteral()
243 AT_ASSERTM(!type_alias.second, "Parsing IR with Alias Info not handled"); in parseScalarLiteral()
244 r.ty = type_alias.first; in parseScalarLiteral()
/external/executorch/runtime/kernel/test/
Dfunctions.yaml4 type_alias:
/external/pytorch/tools/test/
Dtest_executorch_gen.py91 type_alias:
121 type_alias:
192 self.assertFalse({"kernels", "type_alias", "dim_order_alias"} < e.keys())
279 self.assertTrue({"kernels", "type_alias", "dim_order_alias"} < e.keys())
/external/cronet/tot/base/android/
Drequires_api.h36 type_alias, variable))
/external/cronet/stable/base/android/
Drequires_api.h36 type_alias, variable))
/external/eigen/test/
Dtype_alias.cpp12 EIGEN_DECLARE_TEST(type_alias) in EIGEN_DECLARE_TEST() argument
DCMakeLists.txt162 ei_add_test(type_alias)
/external/executorch/docs/source/
Dkernel-library-custom-aten-kernel.md73 * `type_alias`(optional): we are giving aliases to possible dtype options. `T0: [Double, Float]` me…
74 * `dim_order_alias`(optional): similar to `type_alias`, we are giving names to possible dim order o…
95 type_alias:
Dir-exir.md133 type_alias:
/external/python/cpython3/Lib/
Dsymtable.py48 TYPE_ALIAS = "type alias" variable in SymbolTableType
88 return SymbolTableType.TYPE_ALIAS
/external/executorch/kernels/
DREADME.md127 type_alias:
151 * `type_alias`(optional): we are giving aliases to possible dtype options. `T0: [Double, Float]` me…
152 * `dim_order_alias`(optional): similar to `type_alias`, we are giving names to possible dim order o…
/external/dagger2/javatests/dagger/lint/
DDaggerKotlinIssueDetectorTest.kt188 .skipTestModes(TestMode.TYPE_ALIAS, TestMode.IMPORT_ALIAS) in getDetector()
/external/selinux/libsepol/src/
Dlink.c448 || type->flavor == TYPE_ALIAS) { in type_copy_callback()
865 /* there are 2 kinds of aliases. Ones with their own value (TYPE_ALIAS) in alias_copy_callback()
869 (type->flavor == TYPE_ALIAS in alias_copy_callback()
876 if (type->flavor == TYPE_ALIAS) in alias_copy_callback()
906 /* the linked copy always has TYPE_ALIAS style aliases */ in alias_copy_callback()
909 new_type->flavor = TYPE_ALIAS; in alias_copy_callback()
925 if (base_type->flavor == TYPE_ALIAS) { in alias_copy_callback()
941 base_type->flavor = TYPE_ALIAS; in alias_copy_callback()
/external/python/cpython3/Doc/library/
Dsymtable.rst61 .. attribute:: TYPE_ALIAS
/external/selinux/libsepol/tests/
Dtest-common.c175 CU_ASSERT(my_flavor == TYPE_ALIAS); in test_alias_datum()
/external/rust/android-crates-io/crates/bindgen/options/
Dmod.rs553 /// To set the style for individual `typedefs`s, use [`Builder::type_alias`],
571 type_alias: RegexSet {
579 pub fn type_alias<T: AsRef<str>>(mut self, arg: T) -> Builder {
580 self.options.type_alias.insert(arg);

12