PR #44405: Fix typos in compiler directory
Imported from GitHub PR https://github.com/tensorflow/tensorflow/pull/44405 Splitting #43857 by top-level directories. Copybara import of the project: -- fa5da7d5478649d11321dcac9f867b0a57e4798a by Dmitry Volodin <mr.molkree@gmail.com>: fix typos in compiler dir -- 4d3c9f047f7ecb8ab299f1bf28a86fd39096eee7 by Dmitry Volodin <mr.molkree@gmail.com>: fix one test as "atleast" in it comes from Bazel -- 9440ebaaa9fc4a735f7f72f0c8f0de4ec58afbd6 by Dmitry Volodin <mr.molkree@gmail.com>: a bit more PiperOrigin-RevId: 340819994
This commit is contained in:
parent
5f9c75c273
commit
1821c69910
|
@ -741,7 +741,7 @@ static LogicalResult Verify(BroadcastInDimOp op) {
|
||||||
if (dimIndex >= resultRank) {
|
if (dimIndex >= resultRank) {
|
||||||
return op.emitOpError(
|
return op.emitOpError(
|
||||||
llvm::formatv("broadcast_dimensions contains invalid value {0} for "
|
llvm::formatv("broadcast_dimensions contains invalid value {0} for "
|
||||||
"result result with rank {1}",
|
"result with rank {1}",
|
||||||
dimIndex, resultRank));
|
dimIndex, resultRank));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -828,7 +828,7 @@ static LogicalResult Verify(DynamicBroadcastInDimOp op) {
|
||||||
if (dimIndex >= resultRank) {
|
if (dimIndex >= resultRank) {
|
||||||
return op.emitOpError(
|
return op.emitOpError(
|
||||||
llvm::formatv("broadcast_dimensions contains invalid value {0} for "
|
llvm::formatv("broadcast_dimensions contains invalid value {0} for "
|
||||||
"result result with rank {1}",
|
"result with rank {1}",
|
||||||
dimIndex, resultRank));
|
dimIndex, resultRank));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -165,7 +165,7 @@ func @broadcast_in_dim_bad_rank_decrease(%arg0: tensor<1x2x3xi32>) -> tensor<3xi
|
||||||
// -----
|
// -----
|
||||||
|
|
||||||
func @broadcast_in_dim_dimension_values_too_large(%arg0: tensor<1x2xi32>) -> tensor<1x2x3xi32> {
|
func @broadcast_in_dim_dimension_values_too_large(%arg0: tensor<1x2xi32>) -> tensor<1x2x3xi32> {
|
||||||
// expected-error@+1 {{broadcast_dimensions contains invalid value 9 for result result with rank 3}}
|
// expected-error@+1 {{broadcast_dimensions contains invalid value 9 for result with rank 3}}
|
||||||
%0 = "mhlo.broadcast_in_dim"(%arg0) {broadcast_dimensions = dense<[9, 2]> : tensor<2xi64>} : (tensor<1x2xi32>) -> tensor<1x2x3xi32>
|
%0 = "mhlo.broadcast_in_dim"(%arg0) {broadcast_dimensions = dense<[9, 2]> : tensor<2xi64>} : (tensor<1x2xi32>) -> tensor<1x2x3xi32>
|
||||||
return %0 : tensor<1x2x3xi32>
|
return %0 : tensor<1x2x3xi32>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue