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

Method _parse_width

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

Source from the content-addressed store, hash-verified

33
34 @staticmethod
35 def _parse_width(name):
36 if name.endswith('x4'):
37 return name[:-2], 4
38 elif name.endswith('x2'):
39 return name[:-2], 2
40 else:
41 return name, 1
42
43 def forward(self, x, mode=0):
44 # mode --

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected