zoo/resnext/resnext_c.py
def learner(self, x, **metaparameters):
        """ Construct the Learner
            x          : input to the learner
            groups     : list of groups: filters in, filters out, number of blocks
            cardinality: width of group convolution
        """
        cardinality = metaparameters['cardinality']
        groups      = metaparameters['groups']

        # First ResNeXt Group (not-strided)
        x = self.group(x, strides=(1, 1), **groups.pop(0), cardinality=cardinality)

        # Remaining ResNeXt groups
        for group in groups:
            x = self.group(x, **group, cardinality=cardinality)
        return x
 Construct the Learner
            x          : input to the learner
            groups     : list of groups: filters in, filters out, number of blocks
            cardinality: width of group convolution
        
Construct the Learner
x          : input to the learner
groups     : list of groups: filters in, filters out, number of blocks
cardinality: width of group convolution
Construct the Learner x : input to the learner groups : list of groups : filters in filters out number of blocks cardinality : width of group convolution
def learner(self, x, **metaparameters):
        cardinality = metaparameters['cardinality']
        groups      = metaparameters['groups']
        x = self.group(x, strides=(1, 1), **groups.pop(0), cardinality=cardinality)
        for group in groups:
            x = self.group(x, **group, cardinality=cardinality)
        return x
def learner ( self , x , ** metaparameters ) : cardinality = metaparameters [ 'cardinality' ] groups = metaparameters [ 'groups' ] x = self . group ( x , strides = ( 1 , 1 ) , ** groups . pop ( 0 ) , cardinality = cardinality ) for group in groups : x = self . group ( x , ** group , cardinality = cardinality ) return x
Construct the Learner
x          : input to the learner
groups     : list of groups: filters in, filters out, number of blocks
cardinality: width of group convolution
Construct the Learner x : input to the learner groups : list of groups : filters in filters out number of blocks cardinality : width of group convolution
""" Construct the Learner
            x          : input to the learner
            groups     : list of groups: filters in, filters out, number of blocks
            cardinality: width of group convolution
        """ # First ResNeXt Group (not-strided) # Remaining ResNeXt groups
self
x