private
resnext
— function
resnext(cardinality, width, widen_factor = 2, connection = (x, y) -> @. relu(x) + relu(y);
block_config, nclasses = 1000)
Create a ResNeXt model (reference).
Arguments
cardinality
: the number of groups to use for the convolutionwidth
: the number of feature maps in each group in the bottleneckwiden_factor
: the factor by which the width of the bottleneck is increased after each stageconnection
: the binary function applied to the output of residual and skip paths in a blockblock_config
: a list of the number of residual blocks at each stagenclasses
: the number of output classes