Home
last modified time | relevance | path

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

12345678910>>...315

/third_party/python/Lib/ensurepip/_bundled/
Dpip-23.1.2-py3-none-any.whl ... pip/__init__.py pip/__main__.py pip/__pip-runner__.py pip/py.
Dsetuptools-65.5.0-py3-none-any.whl ... py setuptools/_deprecation_warning.py setuptools/_entry_points.py setuptools/_imp.py setuptools/_importlib.py
/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 …]
/third_party/mindspore/mindspore-src/source/.jenkins/check/config/
Dfilter_pylint.txt13 "mindspore/mindspore/python/mindspore/_check_deps_version.py" …
14 "mindspore/mindspore/python/mindspore/_check_version.py" …
15 "mindspore/mindspore/python/mindspore/_check_version.py" …
16 "mindspore/mindspore/python/mindspore/common/api.py" …
17 "mindspore/mindspore/python/mindspore/common/api.py" …
18 "mindspore/mindspore/python/mindspore/common/parameter.py" …
19 "mindspore/mindspore/python/mindspore/common/parameter.py" …
20 "mindspore/mindspore/python/mindspore/common/hook_handle.py" …
21 "mindspore/mindspore/python/mindspore/common/dtype.py" …
22 "mindspore/mindspore/python/mindspore/context.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/mindspore-src/source/mindspore/ccsrc/pybind_api/ir/
Ddtype_py.cc24 void RegTyping(py::module *m) { in RegTyping()
26 py::enum_<TypeId>(m_sub, "TypeId"); in RegTyping()
37 (void)py::class_<Type, std::shared_ptr<Type>>(m_sub, "Type") in RegTyping()
39 [](const TypePtr &t1, const py::object &other) { in RegTyping()
40 if (!py::isinstance<Type>(other)) { in RegTyping()
43 auto t2 = py::cast<TypePtr>(other); in RegTyping()
52 .def("__deepcopy__", [](const TypePtr &t, py::dict) { in RegTyping()
58 (void)py::class_<Number, Type, std::shared_ptr<Number>>(m_sub, "Number").def(py::init()); in RegTyping()
59 (void)py::class_<Bool, Number, std::shared_ptr<Bool>>(m_sub, "Bool") in RegTyping()
60 .def(py::init()) in RegTyping()
[all …]
Dprimitive_py.cc52 void SyncData(const py::object &arg) { in SyncData()
53 if (py::isinstance<py::tuple>(arg)) { in SyncData()
54 py::tuple arg_list = py::cast<py::tuple>(arg); in SyncData()
59 if (py::isinstance<tensor::Tensor>(arg)) { in SyncData()
60 auto tensor = py::cast<tensor::TensorPtr>(arg); in SyncData()
69 py::tuple ConstructCellHookFnArgs(const std::string &cell_id, const py::object &grad_input, in ConstructCellHookFnArgs()
70 const py::object &grad_output) { in ConstructCellHookFnArgs()
75 py::tuple c_grad_args(input_args_nums - 1); in ConstructCellHookFnArgs()
78 py::tuple py_grad_args(input_args_nums - 1); in ConstructCellHookFnArgs()
81 py::tuple hook_fn_args(input_args_nums); in ConstructCellHookFnArgs()
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/frontend/operator/composite/
Dpybind_composite.cc31 void RegCompositeOpsGroup(const py::module *m) { in RegCompositeOpsGroup()
33 (void)py::class_<HyperMapPy, MetaFuncGraph, std::shared_ptr<HyperMapPy>>(*m, "HyperMap_") in RegCompositeOpsGroup()
34 .def(py::init<bool, py::object>(), py::arg("reverse"), py::arg("ops")) in RegCompositeOpsGroup()
35 .def(py::init<bool>(), py::arg("reverse")); in RegCompositeOpsGroup()
38 …(void)py::class_<Tail, MetaFuncGraph, std::shared_ptr<Tail>>(*m, "Tail_").def(py::init<std::string… in RegCompositeOpsGroup()
41 …(void)py::class_<GradOperation, MetaFuncGraph, std::shared_ptr<GradOperation>>(*m, "GradOperation_… in RegCompositeOpsGroup()
42 .def(py::init<std::string &>(), py::arg("fn")) in RegCompositeOpsGroup()
43 ….def(py::init<std::string &, bool, bool, bool, bool, bool, bool, bool, bool>(), py::arg("fn"), py:… in RegCompositeOpsGroup()
44py::arg("get_by_list"), py::arg("sens_param"), py::arg("get_by_position"), py::arg("has_aux"), in RegCompositeOpsGroup()
45 py::arg("get_value"), py::arg("return_ids"), py::arg("merge_forward")); in RegCompositeOpsGroup()
[all …]
/third_party/rust/rust/src/etc/completions/
Dx.py.fish1 complete -c x.py -n "__fish_use_subcommand" -l config -d 'TOML configuration file for build' -r -F
2 complete -c x.py -n "__fish_use_subcommand" -l build-dir -d 'Build directory, overrides `build.buil…
3 complete -c x.py -n "__fish_use_subcommand" -l build -d 'build target of the stage0 compiler' -r -f
4 complete -c x.py -n "__fish_use_subcommand" -l host -d 'host targets to build' -r -f
5 complete -c x.py -n "__fish_use_subcommand" -l target -d 'target targets to build' -r -f
6 complete -c x.py -n "__fish_use_subcommand" -l exclude -d 'build paths to exclude' -r -F
7 complete -c x.py -n "__fish_use_subcommand" -l rustc-error-format -r -f
8 complete -c x.py -n "__fish_use_subcommand" -l on-fail -d 'command to run on failure' -r -f -a "(__…
9 complete -c x.py -n "__fish_use_subcommand" -l stage -d 'stage to build (indicates compiler to use/…
10 complete -c x.py -n "__fish_use_subcommand" -l keep-stage -d 'stage(s) to keep without recompiling …
[all …]
/third_party/grpc/src/python/grpcio_tests/tests/unit/
DBUILD.bazel21 "_abort_test.py",
22 "_api_test.py",
23 "_auth_context_test.py",
24 "_auth_test.py",
25 "_version_test.py",
26 "_channel_args_test.py",
27 "_channel_close_test.py",
28 "_channel_connectivity_test.py",
29 "_channel_ready_future_test.py",
30 "_compression_test.py",
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/pipeline/pynative/op_function/
Dconverter.cc28 std::shared_ptr<U> PyCast(const py::object &obj) { in PyCast()
29 return std::make_shared<U>(py::cast<T>(obj)); in PyCast()
32 BoolImmPtr ConvertBool(const py::object &obj) { in ConvertBool()
33 if (!py::isinstance<py::bool_>(obj)) { in ConvertBool()
35 if (py::isinstance<py::int_>(obj) && py::hasattr(obj, "__ms_mutable_bool__")) { in ConvertBool()
36 auto obj_int64 = py::cast<int64_t>(obj); in ConvertBool()
46 Int64ImmPtr ConvertInt(const py::object &obj) { in ConvertInt()
47 // bool is also an instance of py::int_ in ConvertInt()
48 if (py::isinstance<py::bool_>(obj) || !py::isinstance<py::int_>(obj)) { in ConvertInt()
54 FP32ImmPtr ConvertFloat(const py::object &obj) { in ConvertFloat()
[all …]
/third_party/grpc/examples/python/
DMakefile19 ARTIFACTS += helloworld/helloworld_pb2.py
20 ARTIFACTS += helloworld/helloworld_pb2_grpc.py
23 ARTIFACTS += timeout/helloworld_pb2.py
24 ARTIFACTS += timeout/helloworld_pb2_grpc.py
27 ARTIFACTS += keep_alive/helloworld_pb2.py
28 ARTIFACTS += keep_alive/helloworld_pb2_grpc.py
31 ARTIFACTS += health_checking/helloworld_pb2.py
32 ARTIFACTS += health_checking/helloworld_pb2_grpc.py
35 ARTIFACTS += async_streaming/phone_pb2.py
36 ARTIFACTS += async_streaming/phone_pb2_grpc.py
[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.py34 a/__init__.py
35 a/module.py
38 b/__init__.py
49 a/__init__.py
50 a/module.py
53 b/__init__.py
63 mymodule.py
64 a/__init__.py
68 a/module.py
72 a/b.py
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/pipeline/jit/ps/parse/
Dparse.h126 LocationPtr GetLocation(const py::object &node) const;
127 static void InitParserEnvironment(const py::object &obj);
136 FunctionBlockPtr ParseReturn(const FunctionBlockPtr &block, const py::object &node);
138 FunctionBlockPtr ParseExpr(const FunctionBlockPtr &block, const py::object &node);
140 FunctionBlockPtr ParseIf(const FunctionBlockPtr &block, const py::object &node);
142 FunctionBlockPtr ParseWhile(const FunctionBlockPtr &block, const py::object &node);
144 FunctionBlockPtr ParseFor(const FunctionBlockPtr &block, const py::object &node);
145 FunctionBlockPtr ParseForUnroll(const FunctionBlockPtr &block, const py::object &node);
146 FunctionBlockPtr ParseForRepeat(const FunctionBlockPtr &block, const py::object &node);
148 FunctionBlockPtr ParseFunctionDef(const FunctionBlockPtr &block, const py::object &node);
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/pipeline/jit/pi/graph_compiler/
Dcompiler.cc32 // Reference : method _generate_run_args of _MindsporeFunctionExecutor in api.py
39 bool IsValidRunArg(const py::object &obj, bool enable_tuple_broaden) { in IsValidRunArg()
54 bool CanbeMutable(const py::object &arg) { in CanbeMutable()
62 …if (py::isinstance<py::dict>(arg) || py::isinstance<py::list>(arg) || py::isinstance<py::tuple>(ar… in CanbeMutable()
63 py::object o = python_adapter::CallPyFn("mindspore.common.mutable", "_check_element_type", arg); in CanbeMutable()
64 return py::isinstance<py::bool_>(o) && py::bool_(o); in CanbeMutable()
69 void MarkArgmentMutable(const py::tuple &args) { in MarkArgmentMutable()
77 py::tuple MergeAllArgments(PyObject *args, PyObject *kwargs) { in MergeAllArgments()
79 return py::cast<py::tuple>(args); in MergeAllArgments()
81 py::list new_args; in MergeAllArgments()
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/engine/ir/datasetops/source/
Dbindings.cc98 PYBIND_REGISTER(AGNewsNode, 2, ([](const py::module *m) { in __anon3b221fe00102()
99 … (void)py::class_<AGNewsNode, DatasetNode, std::shared_ptr<AGNewsNode>>(*m, "AGNewsNode", in __anon3b221fe00102()
101 … .def(py::init([](const std::string &dataset_dir, const std::string &usage, int64_t num_samples, in __anon3b221fe00102()
110 PYBIND_REGISTER(AmazonReviewNode, 2, ([](const py::module *m) { in __anon3b221fe00302()
111 … (void)py::class_<AmazonReviewNode, DatasetNode, std::shared_ptr<AmazonReviewNode>>( in __anon3b221fe00302()
113 … .def(py::init([](const std::string &dataset_dir, const std::string &usage, int64_t num_samples, in __anon3b221fe00302()
122 PYBIND_REGISTER(Caltech256Node, 2, ([](const py::module *m) { in __anon3b221fe00502()
123 (void)py::class_<Caltech256Node, DatasetNode, std::shared_ptr<Caltech256Node>>( in __anon3b221fe00502()
125 … .def(py::init([](const std::string &dataset_dir, bool decode, const py::handle &sampler) { in __anon3b221fe00502()
133 PYBIND_REGISTER(CelebANode, 2, ([](const py::module *m) { in __anon3b221fe00702()
[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-src/source/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/engine/ir/datasetops/
Dbindings.cc53 PYBIND_REGISTER(DatasetNode, 1, ([](const py::module *m) { in __anon10ea60a00102()
54 (void)py::class_<DatasetNode, std::shared_ptr<DatasetNode>>(*m, "Dataset") in __anon10ea60a00102()
65 [](const std::shared_ptr<DatasetNode> &self, const py::list &datasets) { in __anon10ea60a00102()
70 py::arg("datasets")) in __anon10ea60a00102()
94 PYBIND_REGISTER(BatchNode, 2, ([](const py::module *m) { in __anon10ea60a00802()
95 … (void)py::class_<BatchNode, DatasetNode, std::shared_ptr<BatchNode>>(*m, "BatchNode", in __anon10ea60a00802()
97 ….def(py::init([](const std::shared_ptr<DatasetNode> &self, int32_t batch_size, bool drop_remainder, in __anon10ea60a00802()
98 … bool pad, const py::list &in_col_names, const py::list &out_col_names, in __anon10ea60a00802()
99 … const py::object &size_obj, const py::object &map_obj, const py::dict &pad_info, in __anon10ea60a00802()
105 py::function size_func = in __anon10ea60a00802()
[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/mindspore/mindspore-src/source/mindspore/ccsrc/pipeline/jit/pi/graph_guard/
Dinfer.cc43 extern bool ConvertData(const py::object &obj, mindspore::ValuePtr *data, bool use_signature,
104 static py::object MakeObjectFromAbstract(const mindspore::abstract::BaseShapePtr &base_shape,
107 static py::object CreateMetaTensor(const ShapeVector &shape, const mindspore::TypePtr &type) { in CreateMetaTensor()
118 py::object pytensor = py::reinterpret_borrow<py::object>(GetMsTensorType()); in CreateMetaTensor()
119 return pytensor(py::cast(tensor)); in CreateMetaTensor()
122 static py::object CreateMetaTensor(const mindspore::abstract::ShapePtr &shape, const mindspore::Typ… in CreateMetaTensor()
126 static py::object CreateScalar(const mindspore::TypePtr &type) { in CreateScalar()
127 static std::map<mindspore::TypeId, py::object> ms_type2py_type_map = { in CreateScalar()
128 {mindspore::kNumberTypeBool, py::bool_()}, in CreateScalar()
129 {mindspore::kNumberTypeInt, py::int_()}, in CreateScalar()
[all …]
/third_party/mindspore/mindspore-src/source/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 __anon2fd259f70102()
51 … (void)py::class_<TensorOperation, std::shared_ptr<TensorOperation>>(*m, "TensorOperation"); in __anon2fd259f70102()
52 py::arg("TensorOperation"); in __anon2fd259f70102()
56 PluginOperation, 1, ([](const py::module *m) { in __anon2fd259f70202()
57 …(void)py::class_<transforms::PluginOperation, TensorOperation, std::shared_ptr<transforms::PluginO… in __anon2fd259f70202()
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/include/common/utils/
Dpython_adapter.h34 namespace py = pybind11; variable
38 COMMON_EXPORT py::module GetPyModule(const std::string &module);
39 COMMON_EXPORT py::object GetPyObjAttr(const py::object &obj, const std::string &attr);
41 py::object CallPyObjMethod(const py::object &obj, const std::string &method, T... args) { in CallPyObjMethod()
42 if (!method.empty() && !py::isinstance<py::none>(obj)) { in CallPyObjMethod()
45 return py::none(); in CallPyObjMethod()
50 py::object CallPyModFn(const py::module &mod, const std::string &function, T... args) { in CallPyModFn()
51 if (!function.empty() && !py::isinstance<py::none>(mod)) { in CallPyModFn()
54 return py::none(); in CallPyModFn()
61 COMMON_EXPORT std::shared_ptr<py::scoped_interpreter> set_python_scoped();
[all …]
/third_party/mindspore/mindspore-src/source/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::map<std::string, float> toStringFloatMap(const py::dict dict) { in toStringFloatMap()
62 std::vector<std::string> toStringVector(const py::list list) { in toStringVector()
[all …]

12345678910>>...315