mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Generate shape-independent graph if any input dimension < 2 (#6581)
* Throw for non-supported case * Not to go to shape-dependent branch when seeing unsupported shapes
This commit is contained in:
parent
8f0b877a1d
commit
8972621138
1 changed files with 2 additions and 1 deletions
|
|
@ -194,7 +194,8 @@ IMPLEMENT_GRADIENT_BUILDER(GetMatMulGradient) {
|
|||
}
|
||||
};
|
||||
|
||||
if (A_has_shape && B_has_shape && Y_has_shape) {
|
||||
if (A_has_shape && B_has_shape && Y_has_shape &&
|
||||
A_shape.size() >= 2 && B_shape.size() >= 2) {
|
||||
std::vector<AttributeProto> shared_attributes;
|
||||
shared_attributes.push_back(MakeAttribute("beta", float(0)));
|
||||
AttributeProto transpose_first_input = MakeAttribute("transA", int64_t(1));
|
||||
|
|
|
|||
Loading…
Reference in a new issue