MCPcopy Create free account
hub / github.com/lukemelas/EfficientNet-PyTorch / round_repeats

Function round_repeats

efficientnet_pytorch/utils.py:74–79  ·  view source on GitHub ↗

Round number of filters based on depth multiplier.

(repeats, global_params)

Source from the content-addressed store, hash-verified

72
73
74def round_repeats(repeats, global_params):
75 """ Round number of filters based on depth multiplier. """
76 multiplier = global_params.depth_coefficient
77 if not multiplier:
78 return repeats
79 return int(math.ceil(multiplier * repeats))
80
81
82def drop_connect(inputs, p, training):

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected