MCPcopy Create free account
hub / github.com/Mattdl/ContinualPrototypeEvolution / get_model

Function get_model

main.py:383–389  ·  view source on GitHub ↗
(args, n_inputs, n_outputs)

Source from the content-addressed store, hash-verified

381
382
383def get_model(args, n_inputs, n_outputs):
384 nl, nh = args.n_layers, args.n_hiddens
385 if args.is_cifar:
386 net = ResNet18(n_outputs, bias=args.bias)
387 else:
388 net = MLP([n_inputs] + [nh] * nl + [n_outputs])
389 return net
390
391
392def main(overwrite_args=None):

Callers 1

mainFunction · 0.85

Calls 2

ResNet18Function · 0.90
MLPClass · 0.90

Tested by

no test coverage detected