def __init__(<EOL>self,<EOL>optimizer,<EOL>ls_max_iterations=<NUM_LIT:10>,<EOL>ls_accept_ratio=<NUM_LIT>,<EOL>ls_mode='<STR_LIT>',<EOL>ls_parameter=<NUM_LIT:0.5>,<EOL>ls_unroll_loop=False,<EOL>scope='<STR_LIT>',<EOL>summary_labels=()<EOL>):
self.solver = LineSearch(<EOL>max_iterations=ls_max_iterations,<EOL>accept_ratio=ls_accept_ratio,<EOL>mode=ls_mode,<EOL>parameter=ls_parameter,<EOL>unroll_loop=ls_unroll_loop<EOL>)<EOL>super(OptimizedStep, self).__init__(optimizer=optimizer, scope=scope, summary_labels=summary_labels)<EOL>
Creates a new optimized step meta optimizer instance.

Args:
    optimizer: The optimizer which is modified by this meta optimizer.
    ls_max_iterations: Maximum number of line search iterations.
    ls_accept_ratio: Line search acceptance ratio.
    ls_mode: Line search mode, see LineSearch solver.
    ls_parameter: Line search parameter, see LineSearch solver.
    ls_unroll_loop: Unroll line search loop if true.