Home
last modified time | relevance | path

Searched full:py (Results 1 – 25 of 5095) sorted by relevance

12345678910>>...204

/third_party/python/Lib/ensurepip/_bundled/
Dpip-21.2.4-py3-none-any.whl ... pip/__init__.py pip/__main__.py pip/py.typed pip/_internal/__init__. ...
Dsetuptools-58.1.0-py3-none-any.whl ... py setuptools/errors.py setuptools/extension.py setuptools/glob.py setuptools/gui-32 ...
/third_party/python/PCbuild/
Dlib.pyproj8 <StartupFile>abc.py</StartupFile>
22 <Compile Include="abc.py" />
23 <Compile Include="aifc.py" />
24 <Compile Include="antigravity.py" />
25 <Compile Include="argparse.py" />
26 <Compile Include="ast.py" />
27 <Compile Include="asynchat.py" />
28 <Compile Include="asyncio\base_events.py" />
29 <Compile Include="asyncio\base_futures.py" />
30 <Compile Include="asyncio\base_subprocess.py" />
[all …]
/third_party/python/Lib/idlelib/
DChangeLog22 * ChangeLog, EditorWindow.py, INSTALLATION, NEWS.txt, README.txt,
23 TODO.txt, idlever.py:
28 * INSTALLATION, setup.py: INSTALLATION: Remove the coexist.patch
31 **************** setup.py:
42 * PyShell.py, idle, idles: Implement idle command interface as
46 usage: idle.py [-c command] [-d] [-i] [-r script] [-s] [-t title]
83 window can be started in parallel by "idles -e foo.py".
87 * PyShell.py: Call out IDLE Fork in startup message.
91 * PyShell.py, setup.py: Add a script "idles" which opens a Python
99 window can be started in parallel by "idles -e foo.py".
[all …]
DREADME.txt24 __init__.py # import, does nothing
25 __main__.py # -m, starts IDLE
27 idle.py
32 autocomplete.py # Complete attribute names or filenames.
33 autocomplete_w.py # Display completions.
34 autoexpand.py # Expand word with previous word in file.
35 browser.py # Create module browser window.
36 calltip_w.py # Display calltip.
37 calltips.py # Create calltip text.
38 codecontext.py # Show compound statement headers otherwise not visible.
[all …]
/third_party/libxml2/python/tests/
DMakefile.am5 build.py \
6 attribs.py \
7 tst.py \
8 tstxpath.py \
9 xpathext.py \
10 push.py \
11 pushSAX.py \
12 pushSAXhtml.py \
13 error.py \
14 serialize.py\
[all …]
/third_party/python/Tools/scripts/
DREADME6 abitype.py Converts a C file to use the PEP 384 type definition API
7 analyze_dxp.py Analyzes the result of sys.getdxp()
8 byext.py Print lines/words/chars stats of files by extension
9 byteyears.py Print product of a file's size and age
10 cleanfuture.py Fix redundant Python __future__ statements
11 combinerefs.py A helper for analyzing PYTHONDUMPREFS output
12 copytime.py Copy one file's atime and mtime to another
13 crlf.py Change CRLF line endings to LF (Windows to Unix)
14 db2pickle.py Dump a database file to a pickle
15 diff.py Print file diffs in context, unified, or ndiff formats
[all …]
/third_party/mindspore/.jenkins/check/config/
Dfilter_pylint.txt11 "mindspore/mindspore/_check_deps_version.py" …
12 "mindspore/mindspore/_check_version.py" …
13 "mindspore/mindspore/_check_version.py" …
14 "mindspore/mindspore/common/parameter.py" …
15 "mindspore/mindspore/context.py" …
17 "mindspore/mindspore/ops/operations/_quant_ops.py" …
18 "mindspore/mindspore/ops/operations/nn_ops.py" …
19 "mindspore/mindspore/ops/operations/_thor_ops.py" …
20 "mindspore/mindspore/ops/operations/_thor_ops.py" …
21 "mindspore/mindspore/ops/operations/_thor_ops.py" …
[all …]
/third_party/grpc/src/python/grpcio_tests/tests/unit/
DBUILD.bazel6 "_abort_test.py",
7 "_api_test.py",
8 "_auth_context_test.py",
9 "_auth_test.py",
10 "_version_test.py",
11 "_channel_args_test.py",
12 "_channel_close_test.py",
13 "_channel_connectivity_test.py",
14 "_channel_ready_future_test.py",
15 "_compression_test.py",
[all …]
/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/
Ddtype_py.cc25 typing, ([](py::module *const m) { in __anon1e19e6ba0102()
27 py::enum_<TypeId>(m_sub, "TypeId"); in __anon1e19e6ba0102()
33 (void)py::class_<Type, std::shared_ptr<Type>>(m_sub, "Type") in __anon1e19e6ba0102()
35 [](const TypePtr &t1, const py::object &other) { in __anon1e19e6ba0102()
36 if (!py::isinstance<Type>(other)) { in __anon1e19e6ba0102()
39 auto t2 = py::cast<TypePtr>(other); in __anon1e19e6ba0102()
48 .def("__deepcopy__", [](const TypePtr &t, py::dict) { in __anon1e19e6ba0102()
54 (void)py::class_<Number, Type, std::shared_ptr<Number>>(m_sub, "Number").def(py::init()); in __anon1e19e6ba0102()
55 (void)py::class_<Bool, Number, std::shared_ptr<Bool>>(m_sub, "Bool") in __anon1e19e6ba0102()
56 .def(py::init()) in __anon1e19e6ba0102()
[all …]
Dprimitive_py.cc46 void SyncData(const py::object &arg) { in SyncData()
47 if (py::isinstance<py::tuple>(arg)) { in SyncData()
48 py::tuple arg_list = py::cast<py::tuple>(arg); in SyncData()
53 if (py::isinstance<tensor::Tensor>(arg)) { in SyncData()
54 auto tensor = py::cast<tensor::TensorPtr>(arg); in SyncData()
59 std::map<std::string, py::object> PrimitivePy::hook_grad_;
61 PrimitivePy::PrimitivePy(const std::string &name) : Primitive(name, false), python_obj_(py::none())… in PrimitivePy()
63 PrimitivePy::PrimitivePy(const py::object &python_obj, const PrimitivePyAdapterPtr &adapter) in PrimitivePy()
81 py::function PrimitivePy::GetBpropFunction() { in GetBpropFunction()
83 if (py::hasattr(python_obj_, get_bprop_func_name)) { in GetBpropFunction()
[all …]
/third_party/python/Lib/test/
Dtest_cprofile.py79 28 0.028 0.001 0.028 0.001 profilee.py:110(__getattr__)
80 1 0.270 0.270 1.000 1.000 profilee.py:25(testfunc)
81 23/3 0.150 0.007 0.170 0.057 profilee.py:35(factorial)
82 20 0.020 0.001 0.020 0.001 profilee.py:48(mul)
83 2 0.040 0.020 0.600 0.300 profilee.py:55(helper)
84 4 0.116 0.029 0.120 0.030 profilee.py:73(helper1)
85 2 0.000 0.000 0.140 0.070 profilee.py:84(helper2_indirect)
86 8 0.312 0.039 0.400 0.050 profilee.py:88(helper2)
87 8 0.064 0.008 0.080 0.010 profilee.py:98(subhelper)"""
89 profilee.py:110(__getattr__) <- 16 0.016 0.016 profilee.py:98(subh…
[all …]
Dtest_modulefinder.py37 a/__init__.py
38 a/module.py
41 b/__init__.py
52 a/__init__.py
53 a/module.py
56 b/__init__.py
66 mymodule.py
67 a/__init__.py
71 a/module.py
75 a/b.py
[all …]
/third_party/gettext/gettext-tools/tests/
Dxgettext-python-39 cat <<\EOF > xg-py-3a.py
15 cat <<\EOF > xg-py-3b.py
22 cat <<\EOF > xg-py-3u.py
28 cat <<\EOF > xg-py-3.ok
56 -d xg-py-3a xg-py-3a.py > /dev/null 2>&1
59 -o xg-py-3a.tmp xg-py-3a.py || Exit 1
60 func_filter_POT_Creation_Date xg-py-3a.tmp xg-py-3a.pot
63 ${DIFF} xg-py-3.ok xg-py-3a.pot || Exit 1
68 -o xg-py-3b.tmp xg-py-3b.py || Exit 1
69 func_filter_POT_Creation_Date xg-py-3b.tmp xg-py-3b.pot
[all …]
/third_party/jinja2/
Djinja2.gni2 "//third_party/jinja2/__init__.py",
3 "//third_party/jinja2/_compat.py",
4 "//third_party/jinja2/_identifier.py",
5 "//third_party/jinja2/asyncfilters.py",
6 "//third_party/jinja2/asyncsupport.py",
7 "//third_party/jinja2/bccache.py",
8 "//third_party/jinja2/compiler.py",
9 "//third_party/jinja2/constants.py",
10 "//third_party/jinja2/debug.py",
11 "//third_party/jinja2/defaults.py",
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/engine/ir/datasetops/
Dbindings.cc55 PYBIND_REGISTER(DatasetNode, 1, ([](const py::module *m) { in __anon672ce46a0102()
56 (void)py::class_<DatasetNode, std::shared_ptr<DatasetNode>>(*m, "Dataset") in __anon672ce46a0102()
67 [](std::shared_ptr<DatasetNode> self, py::list datasets) { in __anon672ce46a0102()
72 py::arg("datasets")) in __anon672ce46a0102()
96 PYBIND_REGISTER(BatchNode, 2, ([](const py::module *m) { in __anon672ce46a0802()
97 … (void)py::class_<BatchNode, DatasetNode, std::shared_ptr<BatchNode>>(*m, "BatchNode", in __anon672ce46a0802()
99 … .def(py::init([](std::shared_ptr<DatasetNode> self, int32_t batch_size, bool drop_remainder, in __anon672ce46a0802()
100 … bool pad, py::list in_col_names, py::list out_col_names, py::list col_order, in __anon672ce46a0802()
101 py::object size_obj, py::object map_obj, py::dict pad_info) { in __anon672ce46a0802()
106 py::function size_func = in __anon672ce46a0802()
[all …]
/third_party/skia/third_party/externals/jinja2/
Djinja2.gni2 "${skia_third_party_dir}/jinja2/__init__.py",
3 "${skia_third_party_dir}/jinja2/_compat.py",
4 "${skia_third_party_dir}/jinja2/_identifier.py",
5 "${skia_third_party_dir}/jinja2/asyncfilters.py",
6 "${skia_third_party_dir}/jinja2/asyncsupport.py",
7 "${skia_third_party_dir}/jinja2/bccache.py",
8 "${skia_third_party_dir}/jinja2/compiler.py",
9 "${skia_third_party_dir}/jinja2/constants.py",
10 "${skia_third_party_dir}/jinja2/debug.py",
11 "${skia_third_party_dir}/jinja2/defaults.py",
[all …]
/third_party/node/tools/inspector_protocol/jinja2/
Djinja2.gni4 "//third_party/jinja2/__init__.py",
5 "//third_party/jinja2/_compat.py",
6 "//third_party/jinja2/_identifier.py",
7 "//third_party/jinja2/asyncfilters.py",
8 "//third_party/jinja2/asyncsupport.py",
9 "//third_party/jinja2/bccache.py",
10 "//third_party/jinja2/compiler.py",
11 "//third_party/jinja2/constants.py",
12 "//third_party/jinja2/debug.py",
13 "//third_party/jinja2/defaults.py",
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/kernels/ir/
Dbindings.cc29 Status PyListToTensorOperations(const py::list &py_ops, std::vector<std::shared_ptr<TensorOperation… in PyListToTensorOperations()
32 if (py::isinstance<TensorOp>(op)) { in PyListToTensorOperations()
34 } else if (py::isinstance<py::function>(op)) { in PyListToTensorOperations()
36 …std::make_shared<transforms::PreBuiltOperation>(std::make_shared<PyFuncOp>(op.cast<py::function>()… in PyListToTensorOperations()
37 } else if (py::isinstance<TensorOperation>(op)) { in PyListToTensorOperations()
50 PYBIND_REGISTER(TensorOperation, 0, ([](const py::module *m) { in __anona645b9410102()
51 … (void)py::class_<TensorOperation, std::shared_ptr<TensorOperation>>(*m, "TensorOperation"); in __anona645b9410102()
52 py::arg("TensorOperation"); in __anona645b9410102()
56 PluginOperation, 1, ([](const py::module *m) { in __anona645b9410202()
57 …(void)py::class_<transforms::PluginOperation, TensorOperation, std::shared_ptr<transforms::PluginO… in __anona645b9410202()
[all …]
/third_party/mindspore/mindspore/ccsrc/pipeline/pynative/
Dpynative_execute.h43 namespace py = pybind11; variable
48 py::object RealRunOp(const py::args &args);
159 …std::function<void(py::object *, const py::object &, const py::args &)> InitGraph = [this](auto &&…
163 …std::function<void(py::object *, const py::object &, const py::object &, const py::args &)> LinkGr…
168 …std::function<void(py::object *, const prim::GradOperationPtr &, const py::object &, const py::obj…
169 const py::args &)>
174 …std::function<void(py::object *, const py::object &, const py::tuple &)> RunGraph = [this](auto &&…
193 AnfNodePtr GetInput(const py::object &obj, bool op_mask);
194 std::string GetCellId(const py::object &obj, const py::args &args);
200 py::object GradMsFunction(const py::object &out, const py::args &args);
[all …]
/third_party/mindspore/mindspore/ccsrc/utils/
Dconvert_utils_py.cc39 py::object BuiltinsToPyData(const Any &value);
40 py::object BuiltinsToPyData(const BaseRef &value);
41 py::object VectorToPyData(const Any &value);
42 py::object VectorRefToPyData(const VectorRef &value);
44 py::object TensorToPyData(const tensor::TensorPtr &tensor) { in TensorToPyData()
47 py::gil_scoped_release release; in TensorToPyData()
50 py::tuple v(1); in TensorToPyData()
55 py::object ScalarPtrToPyData(const ScalarPtr &value) { in ScalarPtrToPyData()
56 py::int_ int_v; in ScalarPtrToPyData()
57 py::float_ float_v; in ScalarPtrToPyData()
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/engine/ir/datasetops/source/
Dbindings.cc59 PYBIND_REGISTER(CelebANode, 2, ([](const py::module *m) { in __anoncf053c6a0102()
60 … (void)py::class_<CelebANode, DatasetNode, std::shared_ptr<CelebANode>>(*m, "CelebANode", in __anoncf053c6a0102()
62 … .def(py::init([](std::string dataset_dir, std::string usage, py::handle sampler, bool decode, in __anoncf053c6a0102()
63 py::list extensions) { in __anoncf053c6a0102()
71 PYBIND_REGISTER(Cifar10Node, 2, ([](const py::module *m) { in __anoncf053c6a0302()
72 … (void)py::class_<Cifar10Node, DatasetNode, std::shared_ptr<Cifar10Node>>(*m, "Cifar10Node", in __anoncf053c6a0302()
74 … .def(py::init([](std::string dataset_dir, std::string usage, py::handle sampler) { in __anoncf053c6a0302()
81 PYBIND_REGISTER(Cifar100Node, 2, ([](const py::module *m) { in __anoncf053c6a0502()
82 … (void)py::class_<Cifar100Node, DatasetNode, std::shared_ptr<Cifar100Node>>(*m, "Cifar100Node", in __anoncf053c6a0502()
84 … .def(py::init([](std::string dataset_dir, std::string usage, py::handle sampler) { in __anoncf053c6a0502()
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/
Dpybind_conversion.cc20 float toFloat(const py::handle &handle) { return py::reinterpret_borrow<py::float_>(handle); } in toFloat()
22 int toInt(const py::handle &handle) { return py::reinterpret_borrow<py::int_>(handle); } in toInt()
24 int64_t toInt64(const py::handle &handle) { return py::reinterpret_borrow<py::int_>(handle); } in toInt64()
26 bool toBool(const py::handle &handle) { return py::reinterpret_borrow<py::bool_>(handle); } in toBool()
28 std::string toString(const py::handle &handle) { return py::reinterpret_borrow<py::str>(handle); } in toString()
30 std::set<std::string> toStringSet(const py::list list) { in toStringSet()
35 (void)set.insert(py::str(l)); in toStringSet()
42 std::map<std::string, int32_t> toStringMap(const py::dict dict) { in toStringMap()
52 std::vector<std::string> toStringVector(const py::list list) { in toStringVector()
59 vector.push_back(py::str(l)); in toStringVector()
[all …]
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/parse/
Dparse.h101 LocationPtr GetLocation(const py::object &node) const;
102 static void InitParserEnvironment(const py::object &obj);
109 FunctionBlockPtr ParseReturn(const FunctionBlockPtr &block, const py::object &node);
111 FunctionBlockPtr ParseExpr(const FunctionBlockPtr &block, const py::object &node);
113 FunctionBlockPtr ParseIf(const FunctionBlockPtr &block, const py::object &node);
115 FunctionBlockPtr ParseWhile(const FunctionBlockPtr &block, const py::object &node);
117 FunctionBlockPtr ParseFor(const FunctionBlockPtr &block, const py::object &node);
118 FunctionBlockPtr ParseForIter(const FunctionBlockPtr &block, const py::object &node);
119 FunctionBlockPtr ParseForLoop(const FunctionBlockPtr &block, const py::object &node);
121 FunctionBlockPtr ParseFunctionDef(const FunctionBlockPtr &block, const py::object &node);
[all …]
/third_party/mindspore/tests/ut/python/cachetests/
Dcachetest_py.sh42 PytestCmd "test_cache_map.py" "${test_name}"
56 PytestCmd "test_cache_map.py" "test_cache_map_failure" 1
59 PytestCmd "test_cache_map.py" "test_cache_map_split" 1
63 PytestCmd "test_cache_map.py" "test_cache_map_parameter_check"
68 PytestCmd "test_cache_map.py" "test_cache_map_running_twice1"
71 PytestCmd "test_cache_map.py" "test_cache_map_running_twice2"
73 PytestCmd "test_cache_map.py" "test_cache_map_running_twice2"
78 PytestCmd "test_cache_map.py" "test_cache_map_running_twice2"
85 PytestCmd "test_cache_map.py" "test_cache_map_running_twice2"
88 PytestCmd "test_cache_map.py" "test_cache_map_no_image"
[all …]

12345678910>>...204