/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/ir/vision/ |
D | random_rotation_ir.cc | 42 degrees_(degrees), in RandomRotationOperation() 54 if (degrees_.size() != size_two && degrees_.size() != size_one) { in ValidateParams() 56 …mRotation: degrees must be a vector of one or two values, got: " + std::to_string(degrees_.size()); in ValidateParams() 57 …S_LOG(ERROR) << "RandomRotation: degrees must be a vector of one or two values, got: " << degrees_; in ValidateParams() 60 if ((degrees_.size() == size_two) && (degrees_[dimension_one] < degrees_[dimension_zero])) { in ValidateParams() 62 … std::to_string(degrees_[dimension_zero]) + ", " + std::to_string(degrees_[dimension_one]) + in ValidateParams() 66 } else if ((degrees_.size() == size_one) && (degrees_[dimension_zero] < 0)) { in ValidateParams() 69 std::to_string(degrees_[dimension_zero]); in ValidateParams() 95 if (degrees_.size() == size_one) { in Build() 96 start_degree = -degrees_[dimension_zero]; in Build() [all …]
|
D | random_sharpness_ir.cc | 36 : TensorOperation(true), degrees_(degrees) {} in RandomSharpnessOperation() 43 if (degrees_.size() != size_two || degrees_[dimension_zero] < 0 || degrees_[dimension_one] < 0) { in ValidateParams() 46 << degrees_; in ValidateParams() 49 if (degrees_[dimension_one] < degrees_[dimension_zero]) { in ValidateParams() 51 …MS_LOG(ERROR) << "RandomSharpness: degrees must be in the format of (min, max), got: " << degrees_; in ValidateParams() 59 std::make_shared<RandomSharpnessOp>(degrees_[dimension_zero], degrees_[dimension_one]); in Build() 64 (*out_json)["degrees"] = degrees_; in to_json()
|
D | random_affine_ir.cc | 41 : degrees_(degrees), in RandomAffineOperation() 56 if (degrees_.size() != size_two) { in ValidateParams() 58 …"RandomAffine: degrees expecting size 2, got: degrees.size() = " + std::to_string(degrees_.size()); in ValidateParams() 62 if (degrees_[dimension_zero] > degrees_[dimension_one]) { in ValidateParams() 64 std::to_string(degrees_[dimension_zero]) + in ValidateParams() 65 ", max = " + std::to_string(degrees_[dimension_one]); in ValidateParams() 148 …auto tensor_op = std::make_shared<RandomAffineOp>(degrees_, translate_range_, scale_range_, shear_… in Build() 155 args["degrees"] = degrees_; in to_json()
|
D | rotate_ir.cc | 27 degrees_(0), in RotateOperation() 36 degrees_(degrees), in RotateOperation() 81 …std::make_shared<RotateOp>(degrees_, interpolation_mode_, expand_, center_, fill_r, fill_g, fill_b… in Build() 93 args["degree"] = degrees_; in to_json()
|
D | affine_ir.cc | 28 : degrees_(degrees), in AffineOperation() 73 std::make_shared<AffineOp>(degrees_, translation_, scale_, shear_, interpolation_, fill_value_); in Build() 79 args["degrees"] = degrees_; in to_json()
|
D | random_sharpness_ir.h | 55 std::vector<float> degrees_;
|
D | random_rotation_ir.h | 56 std::vector<float> degrees_;
|
D | affine_ir.h | 57 float degrees_;
|
D | rotate_ir.h | 61 float degrees_; variable
|
D | random_affine_ir.h | 57 std::vector<float_t> degrees_; // min_degree, max_degree
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/ |
D | rotate_op.cc | 36 degrees_(0), in RotateOp() 47 degrees_(degrees), in RotateOp() 59 …return Rotate(input, output, center_, degrees_, interpolation_, expand_, fill_r_, fill_g_, fill_b_… in Compute()
|
D | affine_op.cc | 41 : degrees_(degrees), in AffineOp() 54 RETURN_IF_NOT_OK(DegreesToRadians(degrees_, °rees)); in Compute()
|
D | affine_op.h | 52 float_t degrees_;
|
D | rotate_op.h | 62 float degrees_;
|
D | random_affine_op.cc | 82 degrees_ = fmod(degrees, 360.0); in Compute()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/ |
D | vision.cc | 99 : degrees_(degrees), in Data() 105 float degrees_; member 118 …return std::make_shared<AffineOperation>(data_->degrees_, data_->translation_, data_->scale_, data… in Parse() 457 : degrees_(degrees), in Data() 463 std::vector<float_t> degrees_; // min_degree, max_degree member 477 …return std::make_shared<RandomAffineOperation>(data_->degrees_, data_->translate_range_, data_->sc… in Parse() 692 …: degrees_(degrees), interpolation_mode_(resample), center_(center), expand_(expand), fill_value_(… in Data() 693 std::vector<float> degrees_; member 705 …return std::make_shared<RandomRotationOperation>(data_->degrees_, data_->interpolation_mode_, data… in Parse() 768 explicit Data(const std::vector<float> °rees) : degrees_(degrees) {} in Data() [all …]
|