We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4e24d7 commit 193de67Copy full SHA for 193de67
examples/pytorch_platform_handler/model.py
@@ -27,6 +27,7 @@
27
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29
import torch
30
+import torchvision
31
32
33
class ResNet50(torch.nn.Module):
@@ -35,7 +36,7 @@ class ResNet50(torch.nn.Module):
35
36
def __init__(self):
37
super().__init__()
38
self._model = torch.hub.load(
- "pytorch/vision",
39
+ "pytorch/vision:v" + torchvision.__version__.split("+")[0],
40
"resnet50",
41
weights="ResNet50_Weights.IMAGENET1K_V2",
42
skip_validation=True,
0 commit comments