Skip to content

Commit

Permalink
Merge pull request #102 from Xilinx/ferdinand.allow_bf16_avgpool_tosa
Browse files Browse the repository at this point in the history
Allow BF16 tosa.avgpool2d in verifiers
  • Loading branch information
ttjost authored Feb 8, 2024
2 parents 53132a4 + 5e87840 commit 0ee5de7
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 0ee5de7

Please sign in to comment.