Home
last modified time | relevance | path

Searched refs:SliceMode (Results 1 – 22 of 22) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/
Dslice_patches_op.h36 static const SliceMode kDefSliceMode;
38 …SlicePatchesOp(int32_t num_height = kDefNumH, int32_t num_width = kDefNumW, SliceMode slice_mode =…
54 SliceMode slice_mode_; // PadModel, DropModel
Dslice_patches_op.cc25 const SliceMode SlicePatchesOp::kDefSliceMode = SliceMode::kPad;
27 SlicePatchesOp::SlicePatchesOp(int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t… in SlicePatchesOp()
Dimage_utils.h366 … int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fill_value);
376 SliceMode slice_mode);
Dimage_utils.cc1511 SliceMode slice_mode) { in ComputePatchSize()
1531 if (slice_mode == SliceMode::kPad) { in ComputePatchSize()
1537 if (slice_mode == SliceMode::kPad) { in ComputePatchSize()
1547 … int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fill_value) { in SlicePatches()
1565 if (slice_mode == SliceMode::kPad) { // padding on right and bottom directions in SlicePatches()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/ir/vision/
Dslice_patches_ir.cc26 SlicePatchesOperation::SlicePatchesOperation(int32_t num_height, int32_t num_width, SliceMode slice… in SlicePatchesOperation()
66 SliceMode slice_mode = static_cast<SliceMode>(op_params["slice_mode"]); in from_json()
Dslice_patches_ir.h39 …SlicePatchesOperation(int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fill_va…
56 SliceMode slice_mode_;
/third_party/mindspore/tests/ut/python/dataset/
Dtest_slice_patches.py79 num_h, num_w, mode.SliceMode.PAD, fill_value)
82 num_h, num_w, mode.SliceMode.DROP)
138 _ = c_vision.SlicePatches(2, 2, mode.SliceMode.PAD, -1)
170 slice_patches_op = c_vision.SlicePatches(4, 3, mode.SliceMode.PAD)
177 slice_patches_op = c_vision.SlicePatches(10, 13, mode.SliceMode.DROP)
184 slice_patches_op = c_vision.SlicePatches(10, 13, mode.SliceMode.DROP)
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/core/
Dbindings.cc134 PYBIND_REGISTER(SliceMode, 0, ([](const py::module *m) { in __anon39cb0f2d0f02()
135 (void)py::enum_<SliceMode>(*m, "SliceMode", py::arithmetic()) in __anon39cb0f2d0f02()
136 .value("DE_SLICE_PAD", SliceMode::kPad) in __anon39cb0f2d0f02()
137 .value("DE_SLICE_DROP", SliceMode::kDrop) in __anon39cb0f2d0f02()
/third_party/mindspore/mindspore/dataset/vision/
D__init__.py30 from .utils import Inter, Border, ImageBatchFormat, SliceMode
Dutils.py101 class SliceMode(IntEnum): class
Dc_transforms.py50 from .utils import Inter, Border, ImageBatchFormat, ConvertMode, SliceMode
92 DE_C_SLICE_MODE = {SliceMode.PAD: cde.SliceMode.DE_SLICE_PAD,
93 SliceMode.DROP: cde.SliceMode.DE_SLICE_DROP}
1704 def __init__(self, num_height=1, num_width=1, slice_mode=SliceMode.PAD, fill_value=0):
Dvalidators.py26 from .utils import Inter, Border, ImageBatchFormat, ConvertMode, SliceMode
524 type_check(slice_mode, (SliceMode,), "slice_mode")
/third_party/openh264/testbin/
Dlayer2.cfg19 SliceMode 0 # 0: sigle slice mode; >0: multiple slices mode, see below;
Dlayer2_vd_rc.cfg19 SliceMode 0 # 0: sigle slice mode; >0: multiple slices mode, see below;
Dlayer2_arbitrary_res.cfg19 SliceMode 0 # 0: sigle slice mode; >0: multiple slices mode, see below;
Dlayer2_vd.cfg19 SliceMode 0 # 0: sigle slice mode; >0: multiple slices mode, see below;
/third_party/openh264/codec/build/windowsphone/all/CodecApp/
Dlayer2.cfg19 SliceMode 0 # 0: sigle slice mode; >0: multiple slices mode, see below;
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/
Dconstants.h178 enum class SliceMode { enum
Dvision.h919 …SlicePatches(int32_t num_height = 1, int32_t num_width = 1, SliceMode slice_mode = SliceMode::kPad,
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/
Dvision.cc948 Data(int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fill_value) in Data()
952 SliceMode slice_mode_;
956 SlicePatches::SlicePatches(int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fil… in SlicePatches()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/kernels/ir/image/
Dbindings.cc587 ….def(py::init([](int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fill_value) { in __anon574f76b45602()
/third_party/mindspore/tests/ut/cpp/dataset/
Ddeserialize_test.cc315 std::make_shared<vision::SlicePatchesOperation>(5, 5, SliceMode::kDrop, 1); in TEST_F()