Skip to content

Commit a2288e4

Browse files
joker-ephtensorflower-gardener
authored andcommitted
Tweak error message on failure to export from MLIR to XLA: the language used "lowering" which usually refers to TF->HLO.
Also use emitOpError which provides more information. PiperOrigin-RevId: 307050558 Change-Id: Ic66cec223e6e6afbee6266537fbc7046bd4d8828
1 parent b296f52 commit a2288e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tensorflow/compiler/mlir/xla/mlir_hlo_to_hlo.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1027,8 +1027,7 @@ LogicalResult ConvertToHloModule::Lower(
10271027
return success();
10281028
}
10291029

1030-
inst->emitError("unable to lower operation of type '" +
1031-
inst->getName().getStringRef().str() + '\'');
1030+
inst->emitOpError() << "can't be translated to XLA HLO";
10321031
return failure();
10331032
}
10341033

0 commit comments

Comments
 (0)