Skip to content

Commit

Permalink
[Mosaic TPU] Add some elementwise canonicalizations
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 711869914
  • Loading branch information
sharadmv authored and Google-ML-Automation committed Jan 6, 2025
1 parent 9f84290 commit d2337ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jaxlib/mosaic/dialect/tpu/transforms/canonicalize_mosaic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,10 @@ const llvm::StringSet<> &elementwise_convertible_ops() {
arith::SubFOp::getOperationName(),
arith::MaximumFOp::getOperationName(),
arith::MinimumFOp::getOperationName(),
math::PowFOp::getOperationName()};
math::PowFOp::getOperationName(),
math::TanhOp::getOperationName(),
math::ExpOp::getOperationName(),
math::LogOp::getOperationName()};
return *ops;
}

Expand Down

0 comments on commit d2337ee

Please sign in to comment.