MCPcopy Create free account
hub / github.com/pytorch/executorch / get_eager_model

Method get_eager_model

examples/models/edsr/model.py:20–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 pass
19
20 def get_eager_model(self) -> torch.nn.Module:
21 logging.info("Loading edsr model")
22 m = edsr_r16f64(2, True)
23 logging.info("Loaded edsr model")
24 return m
25
26 def get_example_inputs(self):
27 tensor_size = (1, 3, 224, 224)

Callers 15

mainFunction · 0.95
test_mv2_fp16Method · 0.45
test_resnet18_fp16Method · 0.45
test_mv3_fp16Method · 0.45
test_dl3_fp16Method · 0.45
test_edsr_fp16Method · 0.45
test_w2l_fp16Method · 0.45
test_resnet50_fp16Method · 0.45

Calls 1

infoMethod · 0.80

Tested by 15

test_mv2_fp16Method · 0.36
test_resnet18_fp16Method · 0.36
test_mv3_fp16Method · 0.36
test_dl3_fp16Method · 0.36
test_edsr_fp16Method · 0.36
test_w2l_fp16Method · 0.36
test_resnet50_fp16Method · 0.36
test_cifarnetFunction · 0.36