mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
[CoreML EP] Fix condition in PRelu op supported check. (#11543)
This commit is contained in:
parent
deef214772
commit
782f9e394d
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ bool IsPReluOpSupported(const Node& node, const OpBuilderInputParams& input_para
|
|||
}
|
||||
|
||||
const auto x_rank = x_shape.size();
|
||||
if (x_rank == 3 || x_rank == 4) {
|
||||
if (x_rank != 3 && x_rank != 4) {
|
||||
LOGS(logger, VERBOSE) << "PRelu 'X' input must have 3 or 4 dimensions, it has " << x_rank << " dimensions";
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue