Home
last modified time | relevance | path

Searched refs:num_height (Results 1 – 11 of 11) sorted by relevance

/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() argument
29 num_height_(num_height), in SlicePatchesOperation()
64 int32_t num_height = op_params["num_height"]; in from_json() local
68 …*operation = std::make_shared<vision::SlicePatchesOperation>(num_height, num_width, slice_mode, fi… in from_json()
Dslice_patches_ir.h39 …SlicePatchesOperation(int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fill_va…
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/
Dslice_patches_op.cc27 SlicePatchesOp::SlicePatchesOp(int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t… in SlicePatchesOp() argument
28 …: num_height_(num_height), num_width_(num_width), slice_mode_(slice_mode), fill_value_(fill_value)… in SlicePatchesOp()
Dslice_patches_op.h38 …SlicePatchesOp(int32_t num_height = kDefNumH, int32_t num_width = kDefNumW, SliceMode slice_mode =…
Dimage_utils.h366 … int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fill_value);
375 … std::shared_ptr<std::pair<int32_t, int32_t>> *patch_size, int32_t num_height, int32_t num_width,
Dimage_utils.cc1510 … std::shared_ptr<std::pair<int32_t, int32_t>> *patch_size, int32_t num_height, int32_t num_width, in ComputePatchSize() argument
1519 if (num_height == 0 || num_height > s.height) { in ComputePatchSize()
1522 std::to_string(num_height)); in ComputePatchSize()
1529 int32_t patch_h = s.height / num_height; in ComputePatchSize()
1530 if (s.height % num_height != 0) { in ComputePatchSize()
1547 … int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fill_value) { in SlicePatches() argument
1548 if (num_height == DEFAULT_NUM_HEIGHT && num_width == DEFAULT_NUM_WIDTH) { in SlicePatches()
1558 RETURN_IF_NOT_OK(ComputePatchSize(input_cv, &patch_size, num_height, num_width, slice_mode)); in SlicePatches()
1566 auto padding_h = patch_h * num_height - s.height; in SlicePatches()
1573 for (int i = 0; i < num_height; ++i) { in SlicePatches()
/third_party/mindspore/mindspore/dataset/vision/
Dc_transforms.py1704 def __init__(self, num_height=1, num_width=1, slice_mode=SliceMode.PAD, fill_value=0): argument
1705 self.num_height = num_height
1711 return cde.SlicePatchesOperation(self.num_height, self.num_width,
Dvalidators.py516 … [num_height, num_width, slice_mode, fill_value], _ = parse_user_args(method, *args, **kwargs)
517 if num_height is not None:
518 type_check(num_height, (int,), "num_height")
519 check_value(num_height, (1, INT32_MAX), "num_height")
/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()
949 …: num_height_(num_height), num_width_(num_width), slice_mode_(slice_mode), fill_value_(fill_value)… in Data()
956 SlicePatches::SlicePatches(int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fil… in SlicePatches() argument
957 : data_(std::make_shared<Data>(num_height, num_width, slice_mode, fill_value)) {} 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() argument
589 … std::make_shared<vision::SlicePatchesOperation>(num_height, num_width, slice_mode, fill_value); in __anon574f76b45602()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/
Dvision.h919 …SlicePatches(int32_t num_height = 1, int32_t num_width = 1, SliceMode slice_mode = SliceMode::kPad,