deepy/core/graph.py
def loop(self, sequences=None, outputs=None, non_sequences=None, block=None, **kwargs):
        """
        Start a loop.
        Usage:
        ```
        with deepy.graph.loop(sequences={"x": x}, outputs={"o": None}) as vars:
            vars.o = vars.x + 1
        loop_outputs = deepy.graph.loop_outputs()
        result = loop_outputs.o
        ```
        """
        from loop import Loop
        return Loop(sequences, outputs, non_sequences, block, **kwargs)
def loop(self, sequences=None, outputs=None, non_sequences=None, block=None, **kwargs):
        """
        Start a loop.
        Usage:
        ```
        with deepy.graph.loop(sequences={"x": x}, outputs={"o": None}) as vars:
            vars.o = vars.x + 1
        loop_outputs = deepy.graph.loop_outputs()
        result = loop_outputs.o
        ```
        """
        from loop import Loop
        return Loop(sequences, outputs, non_sequences, block, **kwargs)
Start a loop.
        Usage:
        ```
        with deepy.graph.loop(sequences={"x": x}, outputs={"o": None}) as vars:
            vars.o = vars.x + 1
        loop_outputs = deepy.graph.loop_outputs()
        result = loop_outputs.o
        ```