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

Class InceptionV3Model

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

Source from the content-addressed store, hash-verified

14
15
16class InceptionV3Model(EagerModelBase):
17 def __init__(self):
18 pass
19
20 def get_eager_model(self) -> torch.nn.Module:
21 logging.info("Loading torchvision inception_v3 model")
22 inception_v3_model = inception_v3(weights="IMAGENET1K_V1")
23 logging.info("Loaded torchvision inception_v3 model")
24 return inception_v3_model
25
26 def get_example_inputs(self):
27 input_shape = (1, 3, 224, 224)
28 return (torch.randn(input_shape),)

Callers 7

inception_v3.pyFile · 0.90
__init__Method · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls