parameters: (op_input, op_output)
return_statement: return array_ops.zeros_like(op_output)
docstring: Like array_ops.zeros_like() but also accepts resource var handles.
docstring_summary: Like array_ops.zeros_like() but also accepts resource var handles.
docstring_tokens: Like array_ops . zeros_like () but also accepts resource var handles .
function: def _zeros_like(op_input, op_output):
    """Like array_ops.zeros_like() but also accepts resource var handles."""
    if op_output.dtype == dtypes.resource:
      # Note: We use `op_input` instead of `op_output` to get the zeros dtype
      # because `op_output` may be missing handle_data if the While is in a
      # restored saved model.
      return array_ops.zeros(
          gen_resource_variable_ops.variable_shape(op_output),
          dtype=default_gradient.get_zeros_dtype(op_input))
    return array_ops.zeros_like(op_output)
function_tokens: def _zeros_like ( op_input , op_output ) : if op_output . dtype == dtypes . resource : # Note: We use `op_input` instead of `op_output` to get the zeros dtype # because `op_output` may be missing handle_data if the While is in a # restored saved model. return array_ops . zeros ( gen_resource_variable_ops . variable_shape ( op_output ) , dtype = default_gradient . get_zeros_dtype ( op_input ) ) return array_ops . zeros_like ( op_output )