Remove debug method/commented dead code.

This was used for debugging at the beginning of TF, but has not been used since.

PiperOrigin-RevId: 320495179
Change-Id: I06c8a6ba747f469ac64db16ca61b2040aa781b8c
This commit is contained in:
Mihai Maruseac 2020-07-09 16:14:18 -07:00 committed by TensorFlower Gardener
parent cff5492c76
commit 82e1db2bba
2 changed files with 0 additions and 24 deletions

View File

@ -495,28 +495,6 @@ void TensorShapeBase<Shape>::AsProto(TensorShapeProto* proto) const {
}
}
void TensorShapeRep::DumpRep() const {
#if 0
fprintf(stderr, "Rep: %d %d dims\n", tag(), dims());
if (tag() == REP16) {
fprintf(stderr, "REP16 NDIMS: %d\n", ndims_byte());
for (int i = 0; i < ndims_byte(); i++) {
fprintf(stderr, "dim %d: %d\n", i, as16()->dims_[i]);
}
} else if (tag_ == REP32) {
fprintf(stderr, "REP32 NDIMS: %d\n", ndims_);
for (int i = 0; i < ndims_byte(); i++) {
fprintf(stderr, "dim %d: %d\n", i, as32()->dims_[i]);
}
} else if (tag_ == REP_OUT_OF_LINE) {
fprintf(stderr, "REP_OUT_OF_LINE NDIMS: %d %p\n", ndims_, as16()->dims_);
for (int i = 0; i < ndims_byte(); i++) {
fprintf(stderr, "dim %d: %lld\n", i, (*as64()->dims_)[i]);
}
}
#endif
}
template <class Shape>
TensorShapeIter<Shape> TensorShapeBase<Shape>::begin() const {
return TensorShapeIter<Shape>(static_cast<const Shape*>(this), 0);

View File

@ -72,8 +72,6 @@ class TensorShapeRep {
std::string DebugString() const;
static std::string DebugString(const TensorShapeProto& proto);
void DumpRep() const; // XXX
protected:
// Constructable only via TensorShapeBase
TensorShapeRep() = default;