We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4954ce commit 83e2944Copy full SHA for 83e2944
src/enzyme_ad/jax/Utils.cpp
@@ -612,8 +612,8 @@ SymmetricResultAnalysis::State SymmetricResultAnalysis::localGuaranteed(
612
return State::NOTGUARANTEED;
613
}
614
615
- auto outTy = dyn_cast<RankedTensorType>(op->getResult(0).getType());
616
- if (!outTy || outTy.getRank() != 2)
+ auto outTy = cast<RankedTensorType>(op->getResult(0).getType());
+ if (outTy.getRank() != 2)
617
return State::NOTGUARANTEED; // this pass only checks for symmetric matrices
618
if (outTy.getDimSize(0) != outTy.getDimSize(1))
619
return State::NOTGUARANTEED; // quick check and exit
0 commit comments