Skip to content

Commit 621f777

Browse files
authored
[CI] Update GPU image for PyTorch 1.11 (#10849)
* Update Jenkinsfile to point to the new GPU image * fix onnx test * fixed keras tutorial
1 parent 95df0eb commit 621f777

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
4848
// NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. -->
4949
ci_lint = 'tlcpack/ci-lint:v0.69'
50-
ci_gpu = 'tlcpack/ci-gpu:v0.82'
50+
ci_gpu = 'tlcpack/ci-gpu:v0.83'
5151
ci_cpu = 'tlcpack/ci-cpu:v0.82'
5252
ci_wasm = 'tlcpack/ci-wasm:v0.72'
5353
ci_i386 = 'tlcpack/ci-i386:v0.75'

gallery/how_to/compile_models/from_keras.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import tvm.relay as relay
4040
from tvm.contrib.download import download_testdata
4141
import keras
42+
import tensorflow as tf
4243
import numpy as np
4344

4445
######################################################################
@@ -65,7 +66,7 @@
6566

6667

6768
weights_path = download_testdata(weights_url, weights_file, module="keras")
68-
keras_resnet50 = keras.applications.resnet50.ResNet50(
69+
keras_resnet50 = tf.keras.applications.resnet50.ResNet50(
6970
include_top=True, weights=None, input_shape=(224, 224, 3), classes=1000
7071
)
7172
keras_resnet50.load_weights(weights_path)
@@ -76,7 +77,7 @@
7677
# A single cat dominates the examples!
7778
from PIL import Image
7879
from matplotlib import pyplot as plt
79-
from keras.applications.resnet50 import preprocess_input
80+
from tensorflow.keras.applications.resnet50 import preprocess_input
8081

8182
img_url = "https://github.com/dmlc/mxnet.js/blob/main/data/cat.png?raw=true"
8283
img_path = download_testdata(img_url, "cat.png", module="data")

jenkins/Jenkinsfile.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
4949

5050
// NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. -->
5151
ci_lint = 'tlcpack/ci-lint:v0.69'
52-
ci_gpu = 'tlcpack/ci-gpu:v0.82'
52+
ci_gpu = 'tlcpack/ci-gpu:v0.83'
5353
ci_cpu = 'tlcpack/ci-cpu:v0.82'
5454
ci_wasm = 'tlcpack/ci-wasm:v0.72'
5555
ci_i386 = 'tlcpack/ci-i386:v0.75'

tests/python/frontend/onnx/test_forward.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2993,7 +2993,7 @@ def forward(self, input):
29932993
torch.onnx.export(layer, dummy_input, file_name, export_params=True)
29942994

29952995
onnx_model = onnx.load(file_name)
2996-
relay.frontend.from_onnx(onnx_model, {"0": input_size})
2996+
relay.frontend.from_onnx(onnx_model, {"onnx::Reshape_0": input_size})
29972997

29982998

29992999
@tvm.testing.parametrize_targets

0 commit comments

Comments
 (0)