MCPcopy Create free account
hub / github.com/HobbitLong/PyContrast / _parse_width

Method _parse_width

pycontrast/networks/build_backbone.py:119–125  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

117
118 @staticmethod
119 def _parse_width(name):
120 if name.endswith('x4'):
121 return name[:-2], 2
122 elif name.endswith('x2'):
123 return name[:-2], 1
124 else:
125 return name, 0.5
126
127 def forward(self, x, mode=0):
128 # mode --

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected