MCPcopy Create free account
hub / github.com/city-super/Octree-GS / get_network

Function get_network

lpipsPyTorch/modules/networks.py:12–20  ·  view source on GitHub ↗
(net_type: str)

Source from the content-addressed store, hash-verified

10
11
12def get_network(net_type: str):
13 if net_type == 'alex':
14 return AlexNet()
15 elif net_type == 'squeeze':
16 return SqueezeNet()
17 elif net_type == 'vgg':
18 return VGG16()
19 else:
20 raise NotImplementedError('choose net_type from [alex, squeeze, vgg].')
21
22
23class LinLayers(nn.ModuleList):

Callers 1

__init__Method · 0.85

Calls 3

AlexNetClass · 0.85
SqueezeNetClass · 0.85
VGG16Class · 0.85

Tested by

no test coverage detected