import tensorflow as tf

from .util import func_scope



@func_scope()
def unpack_to_array(tensor):
  return tf.TensorArray(tensor.dtype, tf.shape(tensor)[0]).unpack(tensor)


@func_scope()
def with_dependencies(dependencies, tensor):
  """
  This function is documented partially in tensorflow.org.
  But, it cannot be found in a library.
  """
  with tf.control_dependencies(dependencies):
    return tensor

@@ -1,12 +1,29 @@
+import functools%0A
 import tenso
@@ -420,8 +420,117 @@
  tensor%0A
+%0A%0A@func_scope()%0Adef sequential(*ops):%0A  return functools.reduce(lambda x, y: with_dependencies(%5Bx%5D, y), ops)%0A

Add control.sequential()