Skip to content

Commit

Permalink
allow bf16 for tosa.avgpool2d in verifier
Browse files Browse the repository at this point in the history
  • Loading branch information
flemairen6 committed Feb 5, 2024
1 parent 845176a commit 5e87840
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ LogicalResult tosa::AvgPool2dOp::verify() {

if (inputETy.isF32() && resultETy.isF32())
return success();
if (inputETy.isBF16() && resultETy.isBF16())
return success();
if (inputETy.isInteger(8) && resultETy.isInteger(8))
return success();
if (inputETy.isInteger(16) && resultETy.isInteger(16))
Expand Down

0 comments on commit 5e87840

Please sign in to comment.