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

Function net

tests/test_model.py:23–24  ·  view source on GitHub ↗
(model, pretrained)

Source from the content-addressed store, hash-verified

21
22@pytest.fixture(scope='function')
23def net(model, pretrained):
24 return EfficientNet.from_pretrained(model) if pretrained else EfficientNet.from_name(model)
25
26
27# -- tests ----------------------------------------------------------------------------------------

Callers 3

test_forwardFunction · 0.85
test_modify_dropoutFunction · 0.85
test_modify_poolFunction · 0.85

Calls 2

from_pretrainedMethod · 0.80
from_nameMethod · 0.80

Tested by

no test coverage detected