tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc
static LogicalResult Verify(BiasAddGradOp op) {
  StringRef format = op.data_format();
  if (format == "NHWC") {
    if (!HasRankAtLeast(op.out_backprop(), 2))
      return op.emitOpError(
          "requires out_backprop operand to have rank at least two with `NHWC` "
          "data format");
  } else {
    // Op definition requires data_format to be either NHWC or NCHW.
    DCHECK_EQ(format.str(), "NCHW");
    if (!HasRankAtLeast(op.out_backprop(), 3))
      return op.emitOpError(
          "requires out_backprop operand to have rank at least three with "
          "`NCHW` data format");
  }

  return success();
}
// Verifies that,
// * the out_backprop operands have valid ranks or are unranked.
//
Verifies that,
the out_backprop operands have valid ranks or are unranked.
Verifies that the out_backprop operands have valid ranks or are unranked .
static LogicalResult Verify(BiasAddGradOp op) {
  StringRef format = op.data_format();
  if (format == "NHWC") {
    if (!HasRankAtLeast(op.out_backprop(), 2))
      return op.emitOpError(
          "requires out_backprop operand to have rank at least two with `NHWC` "
          "data format");
  } else {
    DCHECK_EQ(format.str(), "NCHW");
    if (!HasRankAtLeast(op.out_backprop(), 3))
      return op.emitOpError(
          "requires out_backprop operand to have rank at least three with "
          "`NCHW` data format");
  }
  return success();
}
static LogicalResult Verify ( BiasAddGradOp op ) { StringRef format = op . data_format ( ) ; if ( format == " " ) { if ( ! HasRankAtLeast ( op . out_backprop ( ) , 2 ) ) return op . emitOpError ( " " " " ) ; } else { DCHECK_EQ ( format . str ( ) , " " ) ; if ( ! HasRankAtLeast ( op . out_backprop ( ) , 3 ) ) return op . emitOpError ( " " " " ) ; } return success ( ) ; }
Verifies that,
 the out_backprop operands have valid ranks or are unranked.
Verifies that the out_backprop operands have valid ranks or are unranked .
// Op definition requires data_format to be either NHWC or NCHW.