Check channel dimension mismatch only for known dimensions (#2)
Co-authored-by: Gheorghe-Teodor Bercea <gt.bercea@gmail.com>
This commit is contained in:
parent
e4c23da4fd
commit
8e1b30e133
|
@ -781,7 +781,8 @@ void ONNXConvNoBiasOp::inferShapes() {
|
||||||
int64_t group =
|
int64_t group =
|
||||||
ONNXConvNoBiasOp::group().getSExtValue(); //.getLimitedValue();
|
ONNXConvNoBiasOp::group().getSExtValue(); //.getLimitedValue();
|
||||||
// Check that the X.shape[1] == (W.shape[1] * group) == C condition holds.
|
// Check that the X.shape[1] == (W.shape[1] * group) == C condition holds.
|
||||||
if (dataShape[1] != (weightShape[1] * group))
|
if (dataShape[1] != -1 && weightShape[1] != -1 &&
|
||||||
|
dataShape[1] != (weightShape[1] * group))
|
||||||
emitError("Channel dimension mismatch");
|
emitError("Channel dimension mismatch");
|
||||||
|
|
||||||
// Note: the value of the group attribut only impacts the way the
|
// Note: the value of the group attribut only impacts the way the
|
||||||
|
|
Loading…
Reference in New Issue