Define VALIDATE

Define Documentation

VALIDATE(value, retStatus)

do {                                                                                           \

retStatus = value;                                                                           \

if (retStatus !=

qnn_wrapper_api::MODEL_NO_ERROR) {                                          \       PRINT_ERROR

(                                                                               \

"%s expected MODEL_NO_ERROR, got %s\n", #value, getModelErrorName(retStatus).c_str()); \

return retStatus;                                                                          \

}                                                                                            \

} while (0)