/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/ |
D | dtype_py.cc | 25 typing, ([](py::module *const m) { in __anondf3c551b0102() 27 py::enum_<TypeId>(m_sub, "TypeId"); in __anondf3c551b0102() 33 (void)py::class_<Type, std::shared_ptr<Type>>(m_sub, "Type") in __anondf3c551b0102() 35 [](const TypePtr &t1, const py::object &other) { in __anondf3c551b0102() 36 if (!py::isinstance<Type>(other)) { in __anondf3c551b0102() 39 auto t2 = py::cast<TypePtr>(other); in __anondf3c551b0102() 48 .def("__deepcopy__", [](const TypePtr &t, py::dict) { in __anondf3c551b0102() 54 (void)py::class_<Number, Type, std::shared_ptr<Number>>(m_sub, "Number").def(py::init()); in __anondf3c551b0102() 55 (void)py::class_<Bool, Number, std::shared_ptr<Bool>>(m_sub, "Bool") in __anondf3c551b0102() 56 .def(py::init()) in __anondf3c551b0102() [all …]
|
D | primitive_py.cc | 46 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 …]
|
D | tensor_py.cc | 32 static TypeId GetDataTypeBigFormat(const py::buffer_info &buf) { in GetDataTypeBigFormat() 48 static TypeId GetDataType(const py::buffer_info &buf) { in GetDataType() 107 return py::format_descriptor<float>::format(); in GetPyTypeFormat() 109 return py::format_descriptor<double>::format(); in GetPyTypeFormat() 111 return py::format_descriptor<uint8_t>::format(); in GetPyTypeFormat() 113 return py::format_descriptor<uint16_t>::format(); in GetPyTypeFormat() 115 return py::format_descriptor<uint32_t>::format(); in GetPyTypeFormat() 117 return py::format_descriptor<uint64_t>::format(); in GetPyTypeFormat() 119 return py::format_descriptor<int8_t>::format(); in GetPyTypeFormat() 121 return py::format_descriptor<int16_t>::format(); in GetPyTypeFormat() [all …]
|
/third_party/libxml2/python/tests/ |
D | Makefile.am | 5 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/grpc/src/python/grpcio_tests/tests/unit/ |
D | BUILD.bazel | 6 "_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/gettext/gettext-tools/tests/ |
D | xgettext-python-3 | 9 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/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/engine/ir/datasetops/ |
D | bindings.cc | 55 PYBIND_REGISTER(DatasetNode, 1, ([](const py::module *m) { in __anon4440814b0102() 56 (void)py::class_<DatasetNode, std::shared_ptr<DatasetNode>>(*m, "Dataset") in __anon4440814b0102() 67 [](std::shared_ptr<DatasetNode> self, py::list datasets) { in __anon4440814b0102() 72 py::arg("datasets")) in __anon4440814b0102() 96 PYBIND_REGISTER(BatchNode, 2, ([](const py::module *m) { in __anon4440814b0802() 97 … (void)py::class_<BatchNode, DatasetNode, std::shared_ptr<BatchNode>>(*m, "BatchNode", in __anon4440814b0802() 99 … .def(py::init([](std::shared_ptr<DatasetNode> self, int32_t batch_size, bool drop_remainder, in __anon4440814b0802() 100 … bool pad, py::list in_col_names, py::list out_col_names, py::list col_order, in __anon4440814b0802() 101 py::object size_obj, py::object map_obj, py::dict pad_info) { in __anon4440814b0802() 106 py::function size_func = in __anon4440814b0802() [all …]
|
/third_party/python/Lib/idlelib/ |
D | ChangeLog | 22 * 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/ccsrc/minddata/dataset/api/python/bindings/dataset/kernels/ir/ |
D | bindings.cc | 29 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 __anon3fa898e20102() 51 … (void)py::class_<TensorOperation, std::shared_ptr<TensorOperation>>(*m, "TensorOperation"); in __anon3fa898e20102() 52 py::arg("TensorOperation"); in __anon3fa898e20102() 56 PluginOperation, 1, ([](const py::module *m) { in __anon3fa898e20202() 57 …(void)py::class_<transforms::PluginOperation, TensorOperation, std::shared_ptr<transforms::PluginO… in __anon3fa898e20202() [all …]
|
/third_party/mbedtls/tests/scripts/ |
D | all.sh | 840 tests/scripts/check_files.py 846 scripts/assemble_changelog.py -o ChangeLog.new 857 tests/scripts/check_names.py -v 867 tests/scripts/check_test_cases.py $opt 922 scripts/config.py full 944 scripts/config.py full 945 scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO 946 scripts/config.py set MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER 964 scripts/config.py full 965 scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO [all …]
|
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/parse/ |
D | parse.h | 101 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/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/kernels/ir/image/ |
D | bindings.cc | 73 AdjustGammaOperation, 1, ([](const py::module *m) { in __anon574f76b40102() 74 …(void)py::class_<vision::AdjustGammaOperation, TensorOperation, std::shared_ptr<vision::AdjustGamm… in __anon574f76b40102() 76 .def(py::init([](float gamma, float gain) { in __anon574f76b40102() 84 AutoContrastOperation, 1, ([](const py::module *m) { in __anon574f76b40302() 85 …(void)py::class_<vision::AutoContrastOperation, TensorOperation, std::shared_ptr<vision::AutoContr… in __anon574f76b40302() 87 .def(py::init([](float cutoff, const std::vector<uint32_t> &ignore) { in __anon574f76b40302() 94 PYBIND_REGISTER(BoundingBoxAugmentOperation, 1, ([](const py::module *m) { in __anon574f76b40502() 95 (void)py::class_<vision::BoundingBoxAugmentOperation, TensorOperation, in __anon574f76b40502() 98 .def(py::init([](const py::object transform, float ratio) { in __anon574f76b40502() 107 CenterCropOperation, 1, ([](const py::module *m) { in __anon574f76b40702() [all …]
|
/third_party/mindspore/.jenkins/check/config/ |
D | filter_pylint.txt | 11 "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/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/engine/ir/datasetops/source/ |
D | bindings.cc | 59 PYBIND_REGISTER(CelebANode, 2, ([](const py::module *m) { in __anon9c4d722b0102() 60 … (void)py::class_<CelebANode, DatasetNode, std::shared_ptr<CelebANode>>(*m, "CelebANode", in __anon9c4d722b0102() 62 … .def(py::init([](std::string dataset_dir, std::string usage, py::handle sampler, bool decode, in __anon9c4d722b0102() 63 py::list extensions) { in __anon9c4d722b0102() 71 PYBIND_REGISTER(Cifar10Node, 2, ([](const py::module *m) { in __anon9c4d722b0302() 72 … (void)py::class_<Cifar10Node, DatasetNode, std::shared_ptr<Cifar10Node>>(*m, "Cifar10Node", in __anon9c4d722b0302() 74 … .def(py::init([](std::string dataset_dir, std::string usage, py::handle sampler) { in __anon9c4d722b0302() 81 PYBIND_REGISTER(Cifar100Node, 2, ([](const py::module *m) { in __anon9c4d722b0502() 82 … (void)py::class_<Cifar100Node, DatasetNode, std::shared_ptr<Cifar100Node>>(*m, "Cifar100Node", in __anon9c4d722b0502() 84 … .def(py::init([](std::string dataset_dir, std::string usage, py::handle sampler) { in __anon9c4d722b0502() [all …]
|
/third_party/skia/third_party/externals/jinja2/ |
D | jinja2.gni | 2 "${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/jinja2/ |
D | jinja2.gni | 2 "//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/benchmark/bindings/python/google_benchmark/ |
D | benchmark.cc | 17 namespace py = ::pybind11; 41 py::function f) { in RegisterBenchmark() 48 py::enum_<TimeUnit>(m, "TimeUnit") in PYBIND11_MODULE() 56 py::enum_<BigO>(m, "BigO") in PYBIND11_MODULE() 69 py::class_<Benchmark>(m, "Benchmark") in PYBIND11_MODULE() 78 .def("unit", &Benchmark::Unit, py::return_value_policy::reference) in PYBIND11_MODULE() 79 .def("arg", &Benchmark::Arg, py::return_value_policy::reference) in PYBIND11_MODULE() 80 .def("args", &Benchmark::Args, py::return_value_policy::reference) in PYBIND11_MODULE() 81 .def("range", &Benchmark::Range, py::return_value_policy::reference, in PYBIND11_MODULE() 82 py::arg("start"), py::arg("limit")) in PYBIND11_MODULE() [all …]
|
/third_party/node/tools/inspector_protocol/jinja2/ |
D | jinja2.gni | 4 "//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/utils/ |
D | convert_utils_py.cc | 39 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/audio/kernels/ir/ |
D | bindings.cc | 51 AllpassBiquadOperation, 1, ([](const py::module *m) { in __anona6eb1ce30102() 52 …(void)py::class_<audio::AllpassBiquadOperation, TensorOperation, std::shared_ptr<audio::AllpassBiq… in __anona6eb1ce30102() 54 .def(py::init([](int32_t sample_rate, float central_freq, float Q) { in __anona6eb1ce30102() 62 AmplitudeToDBOperation, 1, ([](const py::module *m) { in __anona6eb1ce30302() 63 …(void)py::class_<audio::AmplitudeToDBOperation, TensorOperation, std::shared_ptr<audio::AmplitudeT… in __anona6eb1ce30302() 65 .def(py::init([](ScaleType stype, float ref_value, float amin, float top_db) { in __anona6eb1ce30302() 72 PYBIND_REGISTER(ScaleType, 0, ([](const py::module *m) { in __anona6eb1ce30502() 73 (void)py::enum_<ScaleType>(*m, "ScaleType", py::arithmetic()) in __anona6eb1ce30502() 79 PYBIND_REGISTER(AngleOperation, 1, ([](const py::module *m) { in __anona6eb1ce30602() 80 … (void)py::class_<audio::AngleOperation, TensorOperation, std::shared_ptr<audio::AngleOperation>>( in __anona6eb1ce30602() [all …]
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/ |
D | pybind_conversion.cc | 20 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/python/Tools/scripts/ |
D | README | 6 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/ccsrc/pipeline/pynative/ |
D | pynative_execute.h | 43 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/minddata/dataset/api/python/bindings/dataset/text/kernels/ir/ |
D | bindings.cc | 29 BasicTokenizerOperation, 1, ([](const py::module *m) { in __anon5546ea160102() 30 …(void)py::class_<text::BasicTokenizerOperation, TensorOperation, std::shared_ptr<text::BasicTokeni… in __anon5546ea160102() 32 .def(py::init([](bool lower_case, bool keep_whitespace, const NormalizeForm normalize_form, in __anon5546ea160102() 42 BertTokenizerOperation, 1, ([](const py::module *m) { in __anon5546ea160302() 43 …(void)py::class_<text::BertTokenizerOperation, TensorOperation, std::shared_ptr<text::BertTokenize… in __anon5546ea160302() 45 .def(py::init([](const std::shared_ptr<Vocab> &vocab, const std::string &suffix_indicator, in __anon5546ea160302() 57 PYBIND_REGISTER(CaseFoldOperation, 1, ([](const py::module *m) { in __anon5546ea160502() 58 …(void)py::class_<text::CaseFoldOperation, TensorOperation, std::shared_ptr<text::CaseFoldOperation… in __anon5546ea160502() 60 .def(py::init([]() { in __anon5546ea160502() 68 NormalizeUTF8Operation, 1, ([](const py::module *m) { in __anon5546ea160702() [all …]
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/core/ |
D | bindings.cc | 29 PYBIND_REGISTER(GlobalContext, 0, ([](const py::module *m) { in __anon39cb0f2d0102() 30 (void)py::class_<GlobalContext>(*m, "GlobalContext") in __anon39cb0f2d0102() 31 … .def_static("config_manager", &GlobalContext::config_manager, py::return_value_policy::reference); in __anon39cb0f2d0102() 34 PYBIND_REGISTER(ConfigManager, 0, ([](const py::module *m) { in __anon39cb0f2d0202() 35 … (void)py::class_<ConfigManager, std::shared_ptr<ConfigManager>>(*m, "ConfigManager") in __anon39cb0f2d0202() 64 PYBIND_REGISTER(Tensor, 0, ([](const py::module *m) { in __anon39cb0f2d0502() 65 … (void)py::class_<Tensor, std::shared_ptr<Tensor>>(*m, "Tensor", py::buffer_protocol()) in __anon39cb0f2d0502() 66 .def(py::init([](py::array arr) { in __anon39cb0f2d0502() 72 py::buffer_info info; in __anon39cb0f2d0502() 79 .def("as_array", [](py::object &t) { in __anon39cb0f2d0502() [all …]
|