def __init__(self, max_iterations, unroll_loop=False):
assert max_iterations >= <NUM_LIT:0><EOL>self.max_iterations = max_iterations<EOL>assert isinstance(unroll_loop, bool)<EOL>self.unroll_loop = unroll_loop<EOL>super(Iterative, self).__init__()<EOL>self.initialize = tf.make_template(name_='<STR_LIT>', func_=self.tf_initialize)<EOL>self.step = tf.make_template(name_='<STR_LIT>', func_=self.tf_step)<EOL>self.next_step = tf.make_template(name_='<STR_LIT>', func_=self.tf_next_step)<EOL>
Creates a new iterative solver instance.

Args:
    max_iterations: Maximum number of iterations before termination.
    unroll_loop: Unrolls the TensorFlow while loop if true.