from tensorflow.python.framework import ops

    The operation that initializes v.
  """
  with ops.op_scope([v, init], None, v.op.name + "/"):
    with ops.name_scope(name) as scope:
      with ops.device(v.device or ops.get_default_graph().get_default_device()):
        if callable(init):
