Home
last modified time | relevance | path

Searched refs:DSCallback (Results 1 – 17 of 17) sorted by relevance

/third_party/mindspore/mindspore/dataset/callback/
Dds_callback.py25 class DSCallback: class
98 if self.__class__.ds_begin != DSCallback.ds_begin:
102 if self.__class__.ds_epoch_begin != DSCallback.ds_epoch_begin:
105 if self.__class__.ds_epoch_end != DSCallback.ds_epoch_end:
109 if self.__class__.ds_step_begin != DSCallback.ds_step_begin:
112 if self.__class__.ds_step_end != DSCallback.ds_step_end:
122 class WaitedDSCallback(Callback, DSCallback):
D__init__.py16 from .ds_callback import DSCallback, WaitedDSCallback
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/callback/
Dds_callback.h30 class DSCallback {
34 explicit DSCallback(int32_t step_size = 1) : step_size_(step_size) {} in step_size_()
37 ~DSCallback() = default;
Dcallback_manager.h42 void AddCallbacks(std::vector<std::shared_ptr<DSCallback>> callbacks);
79 …std::vector<std::shared_ptr<DSCallback>> callbacks_; // list of callbacks the DatasetOp needs to…
Dpy_ds_callback.h33 class PyDSCallback : public DSCallback {
37 : DSCallback(step_size), in DSCallback() function
Dcallback_manager.cc25 void CallbackManager::AddCallbacks(std::vector<std::shared_ptr<DSCallback>> callbacks) { in AddCallbacks()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/
Dmap_node.h35 std::vector<std::shared_ptr<DSCallback>> callbacks = {});
89 const std::vector<std::shared_ptr<DSCallback>> &Callbacks() const { return callbacks_; } in Callbacks()
120 std::vector<std::shared_ptr<DSCallback>> callbacks_;
Dmap_node.cc38 std::vector<std::shared_ptr<DSCallback>> callbacks) in MapNode()
183 … [](std::shared_ptr<DSCallback> cb) -> int32_t { return cb != nullptr ? cb->step_size() : 0; }); in to_json()
/third_party/mindspore/tests/ut/cpp/dataset/
Dir_callback_test.cc39 class TestCallback : public DSCallback {
42 : DSCallback(step_size), in TestCallback()
134 std::shared_ptr<DSCallback> cb1 = tst_cb; in TEST_F()
154 std::vector<std::shared_ptr<DSCallback>> cbs = {}; in TEST_F()
194 std::shared_ptr<DSCallback> cb1 = tst_cb; in TEST_F()
212 std::vector<std::shared_ptr<DSCallback>> cbs = {}; in TEST_F()
262 std::shared_ptr<DSCallback> cb1 = tst_cb; in TEST_F()
331 std::shared_ptr<DSCallback> cb1 = tst_cb; in TEST_F()
/third_party/mindspore/tests/ut/python/dataset/
Dtest_callbacks.py22 from mindspore.dataset.callback import DSCallback, WaitedDSCallback
32 class BaseCallback(DSCallback):
338 class BadCB(DSCallback):
394 class BadCB(DSCallback):
461 class FlagCallback(DSCallback):
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/liteapi/include/
Ddatasets.h62 class DSCallback; variable
199 std::vector<std::shared_ptr<DSCallback>> callbacks = {}) {
230 std::vector<std::shared_ptr<DSCallback>> callbacks = {}) {
262 std::vector<std::shared_ptr<DSCallback>> callbacks = {}) {
424 std::vector<std::shared_ptr<DSCallback>> callbacks);
/third_party/mindspore/mindspore/dataset/engine/
D__init__.py25 from ..callback import DSCallback, WaitedDSCallback
Dvalidators.py687 from mindspore.dataset.callback import DSCallback
704 type_check_list(callbacks, (DSCallback,), "callbacks")
706 type_check(callbacks, (DSCallback,), "callbacks")
712 type_check(callbacks, (list, DSCallback), "callbacks")
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/
Ddataset_op.h346 …void AddCallbacks(std::vector<std::shared_ptr<DSCallback>> callbacks) { callback_manager_.AddCallb… in AddCallbacks()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/
Ddatasets.h77 class DSCallback; variable
316 std::vector<std::shared_ptr<DSCallback>> callbacks = {}) {
348 std::vector<std::shared_ptr<DSCallback>> callbacks = {}) {
381 std::vector<std::shared_ptr<DSCallback>> callbacks = {}) {
710 std::vector<std::shared_ptr<DSCallback>> callbacks);
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/engine/ir/datasetops/
Dbindings.cc200 … std::vector<std::shared_ptr<DSCallback>>(py_callbacks.begin(), py_callbacks.end())); in __anonb78612491402()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/
Ddatasets.cc466 … const std::shared_ptr<DatasetCache> &cache, std::vector<std::shared_ptr<DSCallback>> callbacks) { in MapDataset()