zoo/squeezenet/squeezenet_c.py
def learner(self, x, **metaparameters):
        ''' Construct the Learner
            x      : input to the learner
            groups : number of blocks/filters per group
            dropout: percent of dropout
        '''
        groups  = metaparameters['groups']
        dropout = metaparameters['dropout']

        last = groups.pop()

        # Add fire groups, progressively increase number of filters
        for group in groups:
        	x = self.group(x, blocks=group, **metaparameters)

        # Last fire block (module)
        x = self.fire_block(x, **last[0], **metaparameters)

        # Dropout is delayed to end of fire groups
        x = Dropout(dropout)(x)
        return x
 Construct the Learner
            x      : input to the learner
            groups : number of blocks/filters per group
            dropout: percent of dropout
        
Construct the Learner
x      : input to the learner
groups : number of blocks/filters per group
dropout: percent of dropout
Construct the Learner x : input to the learner groups : number of blocks / filters per group dropout : percent of dropout
def learner(self, x, **metaparameters):
        groups  = metaparameters['groups']
        dropout = metaparameters['dropout']
        last = groups.pop()
        for group in groups:
        	x = self.group(x, blocks=group, **metaparameters)
        x = self.fire_block(x, **last[0], **metaparameters)
        x = Dropout(dropout)(x)
        return x
def learner ( self , x , ** metaparameters ) : groups = metaparameters [ 'groups' ] dropout = metaparameters [ 'dropout' ] last = groups . pop ( ) for group in groups : x = self . group ( x , blocks = group , ** metaparameters ) x = self . fire_block ( x , ** last [ 0 ] , ** metaparameters ) x = Dropout ( dropout ) ( x ) return x
Construct the Learner
x      : input to the learner
groups : number of blocks/filters per group
dropout: percent of dropout
Construct the Learner x : input to the learner groups : number of blocks / filters per group dropout : percent of dropout
''' Construct the Learner
            x      : input to the learner
            groups : number of blocks/filters per group
            dropout: percent of dropout
        ''' # Add fire groups, progressively increase number of filters # Last fire block (module) # Dropout is delayed to end of fire groups
self
x