diff --git a/tensorflow/compiler/xla/shape.h b/tensorflow/compiler/xla/shape.h index dfaac677724..6a19a1fac09 100644 --- a/tensorflow/compiler/xla/shape.h +++ b/tensorflow/compiler/xla/shape.h @@ -49,7 +49,7 @@ class Shape { // Returns the rank (number of dimensions) of the given shape. Shape must be // an array. int64 rank() const { - CHECK(IsArray()) << "Non-arrays do not have a rank, shape: " << ToString(); + DCHECK(IsArray()) << "Non-arrays do not have a rank, shape: " << ToString(); return dimensions_.size(); }