[XLA] Print out shapes' layouts in local_client's "shape/layout doesn't match" error.
Previously we'd say "shape/layout doesn't match" and then print out the shapes without their layouts! PiperOrigin-RevId: 224105237
This commit is contained in:
parent
2114ed7447
commit
7c7ed2b64c
@ -71,9 +71,9 @@ Status LocalExecutable::ValidateExecutionOptions(
|
||||
"parameter "
|
||||
"%d: want %s, got %s",
|
||||
i,
|
||||
ShapeUtil::HumanString(
|
||||
ShapeUtil::HumanStringWithLayout(
|
||||
computation_layout.parameter_layout(i).shape()),
|
||||
ShapeUtil::HumanString(arguments[i]->on_host_shape()));
|
||||
ShapeUtil::HumanStringWithLayout(arguments[i]->on_host_shape()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user