def __init__(self, sequences=None, outputs=None, non_sequences=None, block=None, **kwargs):
        """
        A loop function to support "with" grammar.
        """
        self._sequences = sequences if sequences else {}
        self._outputs = outputs if outputs else {}
        self._non_sequences = non_sequences if non_sequences else {}
        if not isinstance(self._sequences, dict) or not isinstance(self._outputs, dict) != dict or not isinstance(self._non_sequences, dict):
            raise Exception("Arguments of Loop shall be dicts.")
        self._block = block
        self._kwargs = kwargs
        self._loop_vars = None
        self._dummy_nodes = None
        self._scan_local_vars = None
        self._ordered_out_keys = []
        self._scan_outputs = None
def __init__ ( self , sequences = None , outputs = None , non_sequences = None , block = None , ** kwargs ) : self . _sequences = sequences if sequences else { } self . _outputs = outputs if outputs else { } self . _non_sequences = non_sequences if non_sequences else { } if not isinstance ( self . _sequences , dict ) or not isinstance ( self . _outputs , dict ) != dict or not isinstance ( self . _non_sequences , dict ) : raise Exception ( "Arguments of Loop shall be dicts." ) self . _block = block self . _kwargs = kwargs self . _loop_vars = None self . _dummy_nodes = None self . _scan_local_vars = None self . _ordered_out_keys = [ ] self . _scan_outputs = None
A loop function to support "with" grammar.