parameters: (op, grad)
return_statement: return [grads, None]
docstring: The derivatives for nearest neighbor resizing.
  
    Args:
      op: The ResizeNearestNeighbor op.
      grad: The tensor representing the gradient w.r.t. the output.
  
    Returns:
      The gradients w.r.t. the input and the output.
docstring_summary: The derivatives for nearest neighbor resizing.
docstring_tokens: The derivatives for nearest neighbor resizing .
function: def _ResizeNearestNeighborGrad(op, grad):
    """The derivatives for nearest neighbor resizing.
  
    Args:
      op: The ResizeNearestNeighbor op.
      grad: The tensor representing the gradient w.r.t. the output.
  
    Returns:
      The gradients w.r.t. the input and the output.
    """
    # pylint: disable=protected-access
    grads = gen_image_ops._resize_nearest_neighbor_grad(
        grad,
        op.inputs[0].get_shape()[1:3],
        align_corners=op.get_attr("align_corners"))
    # pylint: enable=protected-access
    return [grads, None]
function_tokens: def _ResizeNearestNeighborGrad ( op , grad ) : # pylint: disable=protected-access grads = gen_image_ops . _resize_nearest_neighbor_grad ( grad , op . inputs [ 0 ] . get_shape ( ) [ 1 : 3 ] , align_corners = op . get_attr ( "align_corners" ) ) # pylint: enable=protected-access return [ grads , None ]