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

Class EdsrModel

examples/models/edsr/model.py:16–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15
16class EdsrModel(EagerModelBase):
17 def __init__(self):
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)
28 return (torch.randn(tensor_size),)

Callers 6

test_edsr_fp16Method · 0.90
edsr.pyFile · 0.90
__init__Method · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by 3

test_edsr_fp16Method · 0.72