mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
In the overloaded HloVerifier::CheckShape, include the failing instruction in
the error message. PiperOrigin-RevId: 173965368
This commit is contained in:
committed by
TensorFlower Gardener
parent
302ab0ff76
commit
f9a673cb71
@@ -359,7 +359,10 @@ class ShapeVerifier : public DfsHloVisitor {
|
||||
Status CheckShape(const HloInstruction* instruction,
|
||||
const StatusOr<Shape>& expected_shape_status) {
|
||||
if (!expected_shape_status.ok()) {
|
||||
return expected_shape_status.status();
|
||||
Status s = expected_shape_status.status();
|
||||
tensorflow::errors::AppendToMessage(&s, ", for instruction ",
|
||||
instruction->ToString());
|
||||
return s;
|
||||
}
|
||||
return CheckShape(instruction, expected_shape_status.ValueOrDie());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user