Skip to content

Commit

Permalink
[Mosaic TPU] Print expected Mosaic version after finding unsupported …
Browse files Browse the repository at this point in the history
…version.

PiperOrigin-RevId: 667744063
  • Loading branch information
bythew3i authored and jax authors committed Aug 28, 2024
1 parent b010750 commit 2dfe90f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jaxlib/mosaic/dialect/tpu/transforms/serde.cc
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ struct MosaicSerdePass : public impl::MosaicSerdePassBase<MosaicSerdePass> {
return;
}
if (version_attr.getInt() > kVersion) {
module->emitError("Unsupported Mosaic version: ")
<< version_attr.getInt();
module->emitError("Unsupported Mosaic version: expected <= ")
<< kVersion << " but got " << version_attr.getInt();
signalPassFailure();
return;
}
Expand Down

0 comments on commit 2dfe90f

Please sign in to comment.