Home
last modified time | relevance | path

Searched refs:to_tuple (Results 1 – 12 of 12) sorted by relevance

/aosp_15_r20/external/pytorch/test/cpp/jit/
H A Dtest_lite_interpreter.cpp1113 to_tuple({"STOREN", 1, 4}), in TEST()
1114 to_tuple({"DROPR", 1, 0}), in TEST()
1115 to_tuple({"MOVE", 4, 0}), in TEST()
1116 to_tuple({"JF", 5, 0}), in TEST()
1117 to_tuple({"LOAD", 2, 0}), in TEST()
1118 to_tuple({"LOAD", 3, 0}), in TEST()
1119 to_tuple({"LIST_CONSTRUCT", 0, 2}), in TEST()
1120 to_tuple({"JMP", 4, 0}), in TEST()
1121 to_tuple({"LOAD", 3, 0}), in TEST()
1122 to_tuple({"LOAD", 2, 0}), in TEST()
[all …]
/aosp_15_r20/external/pytorch/torch/csrc/jit/serialization/
H A Dexport_module.cpp58 static IValue to_tuple(std::initializer_list<IValue> ivalues) { in to_tuple() function
62 IValue to_tuple(std::vector<IValue> ivalues) { in to_tuple() function
70 ivalue_entries.push_back(to_tuple({e.first, e.second})); in Table()
72 return to_tuple(std::move(ivalue_entries)); in Table()
174 instructions.emplace_back(to_tuple({toString(ins.op), ins.X, ins.N})); in getFunctionTuple()
184 operators.emplace_back(to_tuple({opname.name, opname.overload_name})); in getFunctionTuple()
187 to_tuple({opname.name, opname.overload_name, size})); in getFunctionTuple()
250 {{"instructions", to_tuple(instructions)}, in getFunctionTuple()
251 {"operators", to_tuple(operators)}, in getFunctionTuple()
252 {"constants", to_tuple(mobile_code.constants_)}, in getFunctionTuple()
[all …]
H A Dexport_bytecode.cpp267 instructions.emplace_back(to_tuple({toString(ins.op), ins.X, ins.N})); in convertMobileFunctionToCodeTable()
276 operators.emplace_back(to_tuple({opname.name, opname.overload_name})); in convertMobileFunctionToCodeTable()
279 to_tuple({opname.name, opname.overload_name, size})); in convertMobileFunctionToCodeTable()
291 {{"instructions", to_tuple(instructions)}, in convertMobileFunctionToCodeTable()
292 {"operators", to_tuple(operators)}, in convertMobileFunctionToCodeTable()
293 {"constants", to_tuple(code.constants_)}, in convertMobileFunctionToCodeTable()
294 {"types", to_tuple(types)}, in convertMobileFunctionToCodeTable()
H A Dexport.h254 TORCH_API IValue to_tuple(std::vector<IValue> ivalues);
/aosp_15_r20/external/python/cpython2/Lib/test/
Dtest_ast.py5 def to_tuple(t): function
9 return [to_tuple(e) for e in t]
16 result.append(to_tuple(getattr(t, f)))
220 self.assertEqual(to_tuple(ast_tree), o)
369 self.assertEqual(to_tuple(ast2), to_tuple(ast))
503 print repr(to_tuple(compile(s, "?", kind, 0x400)))+","
/aosp_15_r20/external/pytorch/c10/util/
H A DTypeList.h50 struct to_tuple final {
56 struct to_tuple<typelist<Types...>> final {
60 using to_tuple_t = typename to_tuple<TypeList>::type;
/aosp_15_r20/external/pytorch/test/dynamo/
H A Dtest_base_output.py81 a = obj.to_tuple()
H A Dtest_model_output.py145 a, b = obj.to_tuple()
H A Dtest_repros.py656 return self.to_tuple()[k]
670 def to_tuple(self): member in ModelOutput
1397 return x.to_tuple()[0] + 1
/aosp_15_r20/external/python/cpython3/Lib/test/
Dtest_ast.py15 def to_tuple(t): function
19 return [to_tuple(e) for e in t]
28 result.append(to_tuple(getattr(t, f)))
327 self.assertEqual(to_tuple(ast_tree), o)
671 self.assertEqual(to_tuple(ast2), to_tuple(ast))
2459 print("%r," % (to_tuple(tree),))
/aosp_15_r20/external/pytorch/benchmarks/dynamo/
H A Dcommon.py1556 return x.to_tuple()
1698 correct_result = correct_result.to_tuple()
1699 fp64_outputs = fp64_outputs.to_tuple() if fp64_outputs is not None else None
/aosp_15_r20/external/mesa3d/src/compiler/nir/
H A Dnir_opt_algebraic.py113 def to_tuple(pattern): function
114 return tuple(to_tuple(i) if isinstance(i, list) else i for i in pattern)
145 result.append(to_tuple(curr))