Skip to content

Commit df11db7

Browse files
Simplify ProgramShape API by removing ShortDebugString() and DebugString().
These methods are unused, untested, and unnecessary. Remove them to reduce the API surface. In case their functionality is needed, we can call `.ToProto().DebugString()`, etc, instead, which is clearer (it's obvious what the string format is) and allows the caller to cache the proto object for better performance if needed. PiperOrigin-RevId: 754016229
1 parent dd039c3 commit df11db7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

xla/shape.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,9 +677,6 @@ class ProgramShape {
677677
return parameter_names_;
678678
}
679679

680-
std::string ShortDebugString() const { return ToProto().ShortDebugString(); }
681-
std::string DebugString() const { return ToProto().DebugString(); }
682-
683680
private:
684681
// Invariant: parameters_ and parameter_names_ have the same size.
685682

0 commit comments

Comments
 (0)