/third_party/mindspore/tests/ut/python/dataset/ |
D | test_crop.py | 40 crop_op = c_vision.Crop((0, 0), (20, 25)) 71 img_ms = c_vision.Crop((20, 50), (30, 50))(img) 83 _ = c_vision.Crop([-10, 0], [20]) 88 _ = c_vision.Crop([0, 5.2], [10, 10]) 93 _ = c_vision.Crop([0], [28]) 98 _ = c_vision.Crop((0, 0), -1) 103 _ = c_vision.Crop((0, 0), (10.5, 15)) 108 _ = c_vision.Crop((0, 0), (0, 10, 20))
|
/third_party/mindspore/mindspore/core/ops/ |
D | crop.cc | 25 void Crop::Init(const int64_t axis, const std::vector<int64_t> &offsets) { in Init() 30 void Crop::set_axis(const int64_t axis) { (void)this->AddAttr(kAxis, MakeValue(axis)); } in set_axis() 32 int64_t Crop::get_axis() const { in get_axis() 37 void Crop::set_offsets(const std::vector<int64_t> &offsets) { (void)this->AddAttr(kOffsets, MakeVal… in set_offsets() 39 std::vector<int64_t> Crop::get_offsets() const { in get_offsets() 58 REGISTER_PRIMITIVE_C(kNameCrop, Crop);
|
D | crop.h | 30 class MS_CORE_API Crop : public PrimitiveC { 33 Crop() : PrimitiveC(kNameCrop) {} in Crop() function 36 ~Crop() = default; 38 MS_DECLARE_PARENT(Crop, PrimitiveC); 68 using PrimCrop = std::shared_ptr<Crop>;
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/ |
D | center_crop_op.cc | 61 return Crop(pad_image, output, (static_cast<int32_t>(pad_image->shape()[1]) - crop_wid_) / 2, in Compute() 65 return Crop(pad_image, output, (static_cast<int32_t>(pad_image->shape()[1]) - crop_wid_) / 2, in Compute() 68 …return Crop(input, output, (input->shape()[1] - crop_wid_) / 2, (input->shape()[0] - crop_het_) / … in Compute()
|
D | crop_op.cc | 37 return Crop(input, output, x_, y_, width_, height_); in Compute()
|
D | random_crop_with_bbox_op.cc | 62 …return Crop(pad_image, &(*output)[0], x, y, RandomCropOp::crop_width_, RandomCropOp::crop_height_); in Compute()
|
D | bounding_box_augment_op.cc | 44 …RETURN_IF_NOT_OK(Crop(input_restore, &crop_out, static_cast<int>(bbox->x()), static_cast<int>(bbox… in Compute()
|
D | cutmix_batch_op.cc | 125 RETURN_IF_NOT_OK(Crop(rand_image, &cropped, x, y, crop_width, crop_height)); in ComputeImage() 139 RETURN_IF_NOT_OK(Crop(channel, &cropped_channel, x, y, crop_width, crop_height)); in ComputeImage()
|
D | lite_image_utils.h | 64 Status Crop(const std::shared_ptr<Tensor> &input, std::shared_ptr<Tensor> *output, int x, int y, in…
|
D | random_crop_op.cc | 160 RETURN_IF_NOT_OK(Crop(pad_image, &(*output)[i], x, y, crop_width_, crop_height_)); in Compute()
|
D | image_utils.h | 135 Status Crop(const std::shared_ptr<Tensor> &input, std::shared_ptr<Tensor> *output, int x, int y, in…
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/ |
D | vision_lite.h | 97 class Crop final : public TensorTransform { 104 Crop(std::vector<int32_t> coordinates, std::vector<int32_t> size); 107 ~Crop() = default;
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/ |
D | crop_infer.c | 35 REG_INFER(Crop, PrimType_Crop, CropInferShape)
|
/third_party/mindspore/mindspore/lite/tools/converter/parser/caffe/ |
D | caffe_crop_parser.cc | 25 auto prim = std::make_unique<ops::Crop>(); in Parse()
|
/third_party/mindspore/tests/ut/cpp/ops/ |
D | test_ops_crop.cc | 35 auto crop = std::make_shared<Crop>(); in TEST_F()
|
/third_party/skia/third_party/externals/libjpeg-turbo/gtest/ |
D | jpegtran-gtest-wrapper.cpp | 61 TEST(JPEGTranTest, Crop) { in TEST() argument
|
/third_party/mindspore/tests/ut/cpp/dataset/ |
D | c_api_vision_a_to_q_test.cc | 281 std::shared_ptr<TensorTransform> crop(new vision::Crop({0, 0}, {height, width})); in TEST_F() 327 std::shared_ptr<TensorTransform> crop1(new vision::Crop({-1, -1}, {20})); in TEST_F() 337 std::shared_ptr<TensorTransform> crop2(new vision::Crop({5}, {10})); in TEST_F() 347 std::shared_ptr<TensorTransform> crop3(new vision::Crop({0, 0}, {-10, -5})); in TEST_F() 357 std::shared_ptr<TensorTransform> crop4(new vision::Crop({0, 0}, {10, 10, 10})); in TEST_F()
|
D | random_crop_decode_resize_op_test.cc | 138 crop_and_decode_status = Crop(decoded, &decoded_and_cropped, x, y, crop_width, crop_height); in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/lite_cv/ |
D | image_process.h | 99 bool Crop(const LiteMat &src, LiteMat &dst, int x, int y, int w, int h);
|
/third_party/mindspore/mindspore/lite/minddata/wrapper/ |
D | MDToDApi.cc | 138 std::vector<int> Crop(MDConf.CropSizeWH, MDConf.CropSizeWH + 2); in MDToDApi_createPipeLine() local 139 … std::shared_ptr<TensorOperation> center_crop_op = mindspore::dataset::vision::CenterCrop(Crop); in MDToDApi_createPipeLine()
|
/third_party/mindspore/mindspore/lite/schema/ |
D | model_v0.fbs | 95 Crop,
|
/third_party/mindspore/mindspore/lite/tools/dataset/cropper/ |
D | README.md | 25 ## Step 2: Crop the MindData lite package
|
/third_party/mindspore/mindspore/lite/src/ops/ |
D | ops_func_declare.h | 298 FUNC_MSOP2SCHEMAOP_DECLARE(Crop)
|
D | ops_def.cc | 58 OP_TYPE(Crop) 449 OP_SCHEMA_DEF(Crop) 452 OP_SCHEMA_DEF_END(Crop)
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/ |
D | vision.cc | 219 struct Crop::Data { 226 Crop::Crop(std::vector<int32_t> coordinates, std::vector<int32_t> size) in Crop() function in mindspore::dataset::vision::Crop 229 std::shared_ptr<TensorOperation> Crop::Parse() { in Parse()
|