Home
last modified time | relevance | path

Searched refs:degrees_ (Results 1 – 16 of 16) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/ir/vision/
Drandom_rotation_ir.cc42 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 …]
Drandom_sharpness_ir.cc36 : 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()
Drandom_affine_ir.cc41 : 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()
Drotate_ir.cc27 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()
Daffine_ir.cc28 : 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()
Drandom_sharpness_ir.h55 std::vector<float> degrees_;
Drandom_rotation_ir.h56 std::vector<float> degrees_;
Daffine_ir.h57 float degrees_;
Drotate_ir.h61 float degrees_; variable
Drandom_affine_ir.h57 std::vector<float_t> degrees_; // min_degree, max_degree
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/
Drotate_op.cc36 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()
Daffine_op.cc41 : degrees_(degrees), in AffineOp()
54 RETURN_IF_NOT_OK(DegreesToRadians(degrees_, &degrees)); in Compute()
Daffine_op.h52 float_t degrees_;
Drotate_op.h62 float degrees_;
Drandom_affine_op.cc82 degrees_ = fmod(degrees, 360.0); in Compute()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/
Dvision.cc99 : 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> &degrees) : degrees_(degrees) {} in Data()
[all …]