parameters: (shape, dtype, name="Variable", set_shape=True, container="",
                  shared_name="")
return_statement: return ret
docstring: Deprecated. Used variable_op_v2 instead.
docstring_summary: Deprecated. Used variable_op_v2 instead.
docstring_tokens: Deprecated . Used variable_op_v2 instead .
function: def variable_op(shape, dtype, name="Variable", set_shape=True, container="",
                  shared_name=""):
    """Deprecated. Used variable_op_v2 instead."""
    if not set_shape:
      shape = tensor_shape.unknown_shape()
    ret = gen_state_ops._variable(shape=shape, dtype=dtype, name=name,
                                  container=container, shared_name=shared_name)
    # TODO(mrry): Move this to where it is used, so we can get rid of this op
    #   wrapper?
    if set_shape:
      ret.set_shape(shape)
    return ret
function_tokens: def variable_op ( shape , dtype , name = "Variable" , set_shape = True , container = "" , shared_name = "" ) : if not set_shape : shape = tensor_shape . unknown_shape ( ) ret = gen_state_ops . _variable ( shape = shape , dtype = dtype , name = name , container = container , shared_name = shared_name ) # TODO(mrry): Move this to where it is used, so we can get rid of this op #   wrapper? if set_shape : ret . set_shape ( shape ) return ret