forked from mindspore-Ecosystem/mindspore
!10210 Dvpp debug
From: @lizhenglong1992 Reviewed-by: @jonyguo,@liucunwei,@liucunwei,@pandoublefeng Signed-off-by: @liucunwei
This commit is contained in:
commit
8dfd9fb96c
|
@ -690,12 +690,12 @@ Status DvppDecodeResizeCropOperation::ValidateParams() {
|
|||
MS_LOG(ERROR) << err_msg;
|
||||
RETURN_STATUS_SYNTAX_ERROR(err_msg);
|
||||
}
|
||||
if (*min_element(crop_.begin(), crop_.end()) < 32 || *max_element(crop_begin(), crop_.end()) > 2048) {
|
||||
if (*min_element(crop_.begin(), crop_.end()) < 32 || *max_element(crop_.begin(), crop_.end()) > 2048) {
|
||||
std::string err_msg = "Dvpp module supports crop image with resolution in range [32, 2048], got Crop Parameters: ";
|
||||
MS_LOG(ERROR) << err_msg << crop_;
|
||||
RETURN_STATUS_SYNTAX_ERROR(err_msg);
|
||||
}
|
||||
if (*min_element(resize_.begin(), resize_.end()) < 32 || *max_element(resize_begin(), resize_.end()) > 2048) {
|
||||
if (*min_element(resize_.begin(), resize_.end()) < 32 || *max_element(resize_.begin(), resize_.end()) > 2048) {
|
||||
std::string err_msg =
|
||||
"Dvpp module supports resize image with resolution in range [32, 2048], got Crop Parameters: ";
|
||||
MS_LOG(ERROR) << err_msg << resize_;
|
||||
|
|
Loading…
Reference in New Issue