Report unsupport reason during tuning (#15246)

This commit is contained in:
cloudhan 2023-03-31 16:54:11 +08:00 committed by GitHub
parent 60cc082f0a
commit 027e231a83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -225,6 +225,7 @@ class TunableOp {
static bool IsSupported(Op<ParamsT>& op, const ParamsT* param) {
Status status = op.IsSupported(param);
if (status.Category() == common::StatusCategory::NONE && status.Code() == common::StatusCode::INVALID_ARGUMENT) {
LOGS_DEFAULT(VERBOSE) << "unsupported reason: " << status.ErrorMessage();
return false;
}
ORT_THROW_IF_ERROR(status);