(this, x, **kwargs)
return x
Runs the sequence, except after each step 'layer', adds
        any 'add_layer' value from kwargs to the output; similarly
        multiplies any 'mult_layer' value from kwargs if present.
Runs the sequence, except after each step 'layer', adds
        any 'add_layer' value from kwargs to the output; similarly
        multiplies any 'mult_layer' value from kwargs if present.
Runs the sequence except after each step layer adds any add_layer value from kwargs to the output ; similarly multiplies any mult_layer value from kwargs if present .
def forward(this, x, **kwargs):
        '''
        Runs the sequence, except after each step 'layer', adds
        any 'add_layer' value from kwargs to the output; similarly
        multiplies any 'mult_layer' value from kwargs if present.
        '''
        seen = set()
        for name, layer in this._modules.items():
            x = layer(x)
            add = kwargs.get('add_' + name, None)
            if add is not None:
                x = x + add
                seen.add('add_' + name)
            mult = kwargs.get('mult_' + name, None)
            if mult is not None:
                x = x * mult
                seen.add('mult_' + name)
        for name in kwargs.keys():
            assert name in seen, '%s not applied' % name
        return x
def forward ( this , x , * * kwargs ) : seen = set ( ) for name , layer in this . _modules . items ( ) : x = layer ( x ) add = kwargs . get ( 'add_' + name , None ) if add is not None : x = x + add seen . add ( 'add_' + name ) mult = kwargs . get ( 'mult_' + name , None ) if mult is not None : x = x * mult seen . add ( 'mult_' + name ) for name in kwargs . keys ( ) : assert name in seen , '%s not applied' % name return x