Searched refs:translate_range_ (Results 1 – 5 of 5) sorted by relevance
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/ir/vision/ |
D | random_affine_ir.cc | 42 translate_range_(translate_range), in RandomAffineOperation() 70 if (translate_range_.size() != size_two && translate_range_.size() != size_four) { in ValidateParams() 72 std::to_string(translate_range_.size()); in ValidateParams() 76 if (translate_range_[dimension_zero] > translate_range_[dimension_one]) { in ValidateParams() 78 std::to_string(translate_range_[dimension_zero]) + in ValidateParams() 79 ", max = " + std::to_string(translate_range_[dimension_one]); in ValidateParams() 84 …ValidateScalar("RandomAffine", "translate", translate_range_[dimension_zero], {-1, 1}, false, fals… in ValidateParams() 85 …RETURN_IF_NOT_OK(ValidateScalar("RandomAffine", "translate", translate_range_[dimension_one], {-1,… in ValidateParams() 86 if (translate_range_.size() == size_four) { in ValidateParams() 87 if (translate_range_[dimension_two] > translate_range_[dimension_three]) { in ValidateParams() [all …]
|
D | random_affine_ir.h | 58 …std::vector<float_t> translate_range_; // maximum x translation percentage, maximum y translation… variable
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/ |
D | random_affine_op.cc | 38 translate_range_(translate_range), in RandomAffineOp() 50 …CHECK_FAIL_RETURN_UNEXPECTED(translate_range_.size() == 4, "RandomAffine: the translate range size… in Compute() 57 …CHECK_FAIL_RETURN_UNEXPECTED((std::numeric_limits<float_t>::max() / std::abs(translate_range_[0]))… in Compute() 59 …CHECK_FAIL_RETURN_UNEXPECTED((std::numeric_limits<float_t>::max() / std::abs(translate_range_[1]))… in Compute() 61 …CHECK_FAIL_RETURN_UNEXPECTED((std::numeric_limits<float_t>::max() / std::abs(translate_range_[2]))… in Compute() 63 …CHECK_FAIL_RETURN_UNEXPECTED((std::numeric_limits<float_t>::max() / std::abs(translate_range_[3]))… in Compute() 65 float_t min_dx = translate_range_[0] * width; in Compute() 66 float_t max_dx = translate_range_[1] * width; in Compute() 67 float_t min_dy = translate_range_[2] * height; in Compute() 68 float_t max_dy = translate_range_[3] * height; in Compute()
|
D | random_affine_op.h | 54 …std::vector<float_t> translate_range_; // maximum x translation percentage, maximum y translation… variable
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/ |
D | vision.cc | 458 translate_range_(translate_range), in Data() 464 …std::vector<float_t> translate_range_; // maximum x translation percentage, maximum y translation… member 477 …return std::make_shared<RandomAffineOperation>(data_->degrees_, data_->translate_range_, data_->sc… in Parse()
|