Searched refs:RandomApply (Results 1 – 9 of 9) sorted by relevance
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/ |
D | transforms.h | 38 class RandomApply; variable 55 friend class transforms::RandomApply; 287 class RandomApply final : public TensorTransform { 292 explicit RandomApply(const std::vector<TensorTransform *> &transforms, double prob = 0.5); 296 …explicit RandomApply(const std::vector<std::shared_ptr<TensorTransform>> &transforms, double prob … 300 …explicit RandomApply(const std::vector<std::reference_wrapper<TensorTransform>> &transforms, doubl… 303 ~RandomApply() = default;
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/ |
D | transforms.cc | 188 struct RandomApply::Data { 193 RandomApply::RandomApply(const std::vector<TensorTransform *> &transforms, double prob) in RandomApply() function in mindspore::dataset::transforms::RandomApply 202 RandomApply::RandomApply(const std::vector<std::shared_ptr<TensorTransform>> &transforms, double pr… in RandomApply() function in mindspore::dataset::transforms::RandomApply 211 RandomApply::RandomApply(const std::vector<std::reference_wrapper<TensorTransform>> &transforms, do… in RandomApply() function in mindspore::dataset::transforms::RandomApply 218 std::shared_ptr<TensorOperation> RandomApply::Parse() { in Parse()
|
/third_party/mindspore/tests/ut/python/dataset/ |
D | test_random_apply.py | 41 py_transforms.RandomApply(transforms_list, prob=0.6), 83 py_transforms.RandomApply(transforms_list), 115 py_transforms.RandomApply(transforms_list, prob=0.6),
|
D | test_c_random_apply.py | 27 data = data.map(operations=ops.RandomApply(op_list, prob), input_columns=["col"])
|
D | test_compose.py | 238 test_config(py_transforms.RandomApply([c_vision.RandomResizedCrop(200)]))
|
D | test_serdes_dataset.py | 397 data1 = data1.map(operations=py.RandomApply(transforms2), input_columns=["image"])
|
/third_party/mindspore/mindspore/dataset/transforms/ |
D | py_transforms.py | 228 class RandomApply(PyTensorOperation): class
|
D | c_transforms.py | 442 class RandomApply(TensorOperation): class
|
/third_party/mindspore/tests/ut/cpp/dataset/ |
D | c_api_transforms_test.cc | 1756 auto random_apply = transforms::RandomApply({resize_op}, 0.8); in TEST_F() 1799 auto random_apply = transforms::RandomApply({decode_op, resize_op}); in TEST_F() 1820 std::shared_ptr<TensorTransform> random_apply(new transforms::RandomApply({decode_op, nullptr})); in TEST_F() 1841 auto random_apply = transforms::RandomApply({resize_op}, -1); in TEST_F() 1862 auto random_apply = transforms::RandomApply(list); in TEST_F() 1949 std::shared_ptr<TensorTransform> random_choice(new transforms::RandomApply({decode_op, nullptr})); in TEST_F()
|