Home
last modified time | relevance | path

Searched refs:py_code (Results 1 – 2 of 2) sorted by relevance

/third_party/mindspore/tests/ut/cpp/ir/
Dclone_test.cc75 std::string py_code = "test_clone_simple"; in TEST_F() local
77 FuncGraphPtr g = getPyFun.CallAndParseRet(py_code); in TEST_F()
104 std::string py_code = "test_clone_closure"; in TEST_F() local
107 FuncGraphPtr parsed_f = getPyFun(py_code); in TEST_F()
128 std::string py_code = "test_clone_closure"; in TEST_F() local
131 FuncGraphPtr parsed_f = getPyFun(py_code); in TEST_F()
144 std::string py_code = "test_clone_scoping"; in TEST_F() local
147 FuncGraphPtr g = getPyFun.CallAndParseRet(py_code); in TEST_F()
171 std::string py_code = "test_clone_total"; in TEST_F() local
175 FuncGraphPtr g = getPyFun.CallAndParseRet(py_code); in TEST_F()
/third_party/python/Modules/
D_pickle.c6266 PyObject *py_code; /* code as a Python int */ in load_extension() local
6283 py_code = PyLong_FromLong(code); in load_extension()
6284 if (py_code == NULL) in load_extension()
6286 obj = PyDict_GetItemWithError(st->extension_cache, py_code); in load_extension()
6289 Py_DECREF(py_code); in load_extension()
6294 Py_DECREF(py_code); in load_extension()
6299 pair = PyDict_GetItemWithError(st->inverted_registry, py_code); in load_extension()
6301 Py_DECREF(py_code); in load_extension()
6328 Py_DECREF(py_code); in load_extension()
6332 code = PyDict_SetItem(st->extension_cache, py_code, obj); in load_extension()
[all …]