from tensorflow.python.ops import array_ops


    def reallocate():
      next_size = _next_array_size(new_size)
      next_shape = array_ops.pack([next_size] + fixed_shape)
      new_value = array_ops.zeros(next_shape, dtype=values.dtype)
      old_value = array.value()
