Skip to content

Commit 92e2bba

Browse files
authored
[CI] Upgrade CI image to 20241105-030952-3e386fd3 (#17451)
* use `20241105-030952-3e386fd3` for ci * fix missing `language` kwarg in save_rst_example * disable invalid-name check by pylint * disable caffe frontend tests * disable mxnet frontend tests * fix stablehlo importer * enable some stablehlo tests * skip tests because mxnet raise AttributeError * use stable sort for `np.argsort` * fix `TypeError: arrays to stack must be passed as a "sequence" type such as list or tuple.` * disable tests because of shape error * remove `get_html_theme_path` because it's deprecated * ignore warnings from sphinx * disable oneflow frontend tests * remove oneflow tutorial * remove debug print
1 parent 4d99ec5 commit 92e2bba

File tree

16 files changed

+47
-251
lines changed

16 files changed

+47
-251
lines changed

ci/jenkins/docker-images.ini

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717

1818
# This data file is read during when Jenkins runs job to determine docker images.
1919
[jenkins]
20-
ci_arm: tlcpack/ci-arm:20240917-153130-9f281758
21-
ci_cortexm: tlcpack/ci-cortexm:20240917-153130-9f281758
22-
ci_cpu: tlcpack/ci_cpu:20240917-153130-9f281758
23-
ci_gpu: tlcpack/ci-gpu:20240917-153130-9f281758
24-
ci_hexagon: tlcpack/ci-hexagon:20240917-153130-9f281758
25-
ci_i386: tlcpack/ci-i386:20240917-153130-9f281758
26-
ci_lint: tlcpack/ci-lint:20240917-153130-9f281758
27-
ci_minimal: tlcpack/ci-minimal:20240917-153130-9f281758
28-
ci_riscv: tlcpack/ci-riscv:20240917-153130-9f281758
29-
ci_wasm: tlcpack/ci-wasm:20240917-153130-9f281758
20+
ci_arm: tlcpack/ci-arm:20241119-020227-6fc0598c
21+
ci_cortexm: tlcpack/ci-cortexm:20241119-020227-6fc0598c
22+
ci_cpu: tlcpack/ci_cpu:20241119-020227-6fc0598c
23+
ci_gpu: tlcpack/ci-gpu:20241119-020227-6fc0598c
24+
ci_hexagon: tlcpack/ci-hexagon:20241119-020227-6fc0598c
25+
ci_i386: tlcpack/ci-i386:20241119-020227-6fc0598c
26+
ci_lint: tlcpack/ci-lint:20241119-020227-6fc0598c
27+
ci_minimal: tlcpack/ci-minimal:20241119-020227-6fc0598c
28+
ci_riscv: tlcpack/ci-riscv:20241119-020227-6fc0598c
29+
ci_wasm: tlcpack/ci-wasm:20241119-020227-6fc0598c

ci/jenkins/unity_jenkinsfile.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030
import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
3131

3232
// NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. -->
33-
ci_lint = 'tlcpack/ci_lint:20240917-153130-9f281758'
34-
ci_gpu = 'tlcpack/ci_gpu:20240917-153130-9f281758'
35-
ci_cpu = 'tlcpack/ci_cpu:20240917-153130-9f281758'
33+
ci_lint = 'tlcpack/ci_lint:20241119-020227-6fc0598c'
34+
ci_gpu = 'tlcpack/ci_gpu:20241119-020227-6fc0598c'
35+
ci_cpu = 'tlcpack/ci_cpu:20241119-020227-6fc0598c'
3636
ci_wasm = 'tlcpack/ci-wasm:v0.72'
3737
ci_i386 = 'tlcpack/ci-i386:v0.75'
3838
ci_qemu = 'tlcpack/ci-qemu:v0.11'
3939
ci_arm = 'tlcpack/ci-arm:v0.08'
40-
ci_hexagon = 'tlcpack/ci_hexagon:20240917-153130-9f281758'
40+
ci_hexagon = 'tlcpack/ci_hexagon:20241119-020227-6fc0598c'
4141
// <--- End of regex-scanned config.
4242

4343
// Parameters to allow overriding (in Jenkins UI), the images

docs/conf.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ def split_code_and_text_blocks(source_file, return_node, real_func):
159159

160160

161161
@monkey_patch("sphinx_gallery.gen_rst", "save_rst_example")
162-
def save_rst_example(example_rst, example_file, time_elapsed, memory_used, gallery_conf, real_func):
162+
def save_rst_example(
163+
example_rst, example_file, time_elapsed, memory_used, gallery_conf, language, real_func
164+
):
163165
"""Monkey-patch save_rst_example to include the "Open in Colab" button."""
164166

165167
# The url is the md5 hash of the notebook path.
@@ -178,7 +180,9 @@ def save_rst_example(example_rst, example_file, time_elapsed, memory_used, galle
178180
python_file=example_fname, ref_name=ref_fname, colab_url=colab_url, button_svg=BUTTON
179181
)
180182
with patch("sphinx_gallery.gen_rst.EXAMPLE_HEADER", new_header):
181-
real_func(example_rst, example_file, time_elapsed, memory_used, gallery_conf)
183+
real_func(
184+
example_rst, example_file, time_elapsed, memory_used, gallery_conf, language=language
185+
)
182186

183187

184188
INCLUDE_DIRECTIVE_RE = re.compile(r"^([ \t]*)\.\. include::\s*(.+)\n", flags=re.M)
@@ -365,10 +369,7 @@ def jupyter_notebook(script_blocks, gallery_conf, target_dir, real_func):
365369
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
366370
# only import rtd theme and set it if want to build docs locally
367371
if not on_rtd and html_theme == "rtd":
368-
import sphinx_rtd_theme
369-
370372
html_theme = "sphinx_rtd_theme"
371-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
372373

373374
# Add any paths that contain custom static files (such as style sheets) here,
374375
# relative to this directory. They are copied after the builtin static files,

gallery/how_to/compile_models/from_oneflow.py

Lines changed: 0 additions & 182 deletions
This file was deleted.

python/tvm/contrib/sparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def numpy(self):
9595
"""Construct a full matrix and convert it to numpy array."""
9696
full = _np.zeros(self.shape, self.dtype)
9797
ridx = _np.diff(self.indptr.numpy())
98-
ridx = _np.hstack((_np.ones((v,), itype) * i for i, v in enumerate(ridx)))
98+
ridx = _np.hstack([_np.ones((v,), itype) * i for i, v in enumerate(ridx)])
9999
full[ridx, self.indices.numpy().astype(itype)] = self.data.numpy()
100100
return full
101101

python/tvm/relax/expr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
# This feature is not supported until python 3.10:
4040
# https://docs.python.org/3.10/whatsnew/3.10.html#pep-613-typealias
4141
Expr = Union[tvm.ir.RelayExpr]
42-
Type = Union[tvm.ir.Type]
42+
Type = Union[tvm.ir.Type] # pylint: disable=invalid-name
4343
GlobalVar = Union[tvm.ir.GlobalVar]
4444

4545

python/tvm/relax/frontend/stablehlo/stablehlo_translator.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -432,14 +432,12 @@ def from_stablehlo(
432432
output : tvm.IRModule
433433
The result IRModule with entry function "main"
434434
"""
435-
from jaxlib import mlir
436-
from jaxlib.mlir.dialects import stablehlo
435+
from jax._src.interpreters import mlir as jax_mlir
437436

438437
if isinstance(stablehlo_module, str):
439438
# TODO (yongwww): support the serialized bytecode format of StableHLO
440439
# model using stablehlo.deserialize_portable_artifact(ir) if the python
441440
# binding is ready
442-
with mlir.ir.Context() as context:
443-
stablehlo.register_dialect(context)
444-
stablehlo_module = mlir.ir.Module.parse(stablehlo_module)
441+
context = jax_mlir.make_ir_context()
442+
stablehlo_module = jax_mlir.ir.Module.parse(stablehlo_module, context)
445443
return StableHLOImporter().from_stablehlo(stablehlo_module, input_info)

python/tvm/tir/schedule/schedule.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ def __init__(self) -> None:
6161
# It is a workaround for mypy: https://github.com/python/mypy/issues/7866#issuecomment-549454370
6262
# This feature is not supported until python 3.10:
6363
# https://docs.python.org/3.10/whatsnew/3.10.html#pep-613-typealias
64-
ExprRV = Union[PrimExpr] # A random variable that evaluates to an integer
64+
# A random variable that evaluates to an integer
65+
ExprRV = Union[PrimExpr] # pylint: disable=invalid-name
6566

6667
RAND_VAR_TYPE = Union[ExprRV, BlockRV, LoopRV] # pylint: disable=invalid-name
6768

tests/python/codegen/test_target_codegen_vulkan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def test_argsort(target, dev):
257257
mod = tvm.IRModule()
258258
mod["main"] = relay.Function([x], relay.argsort(x))
259259
x_np = np.random.randint(0, high=10, size=(10,)).astype(dtype)
260-
res_np = np.argsort(x_np)
260+
res_np = np.argsort(x_np, kind="stable")
261261

262262
check_mod(target, dev, mod, x_np, res_np)
263263

tests/python/codegen/test_target_texture_codegen_opencl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,13 +1385,15 @@ class TestConv2dWCHNcCRSKk(BaseConv2DValidator):
13851385
test_func = tvm.testing.parameter(conv2d_1x1_WCHNc_CRSKk)
13861386

13871387

1388+
@pytest.mark.skip("AttributeError: module 'numpy' has no attribute 'bool' raised from mxnet")
13881389
class TestConv2dNCHWcKCRSk(BaseConv2DValidator):
13891390
input_shapes = tvm.testing.parameter(
13901391
[(1, 32, 56, 56, 4), (32, 128, 1, 1, 4)], [(1, 32, 112, 112, 4), (32, 128, 3, 3, 4)]
13911392
)
13921393
test_func = tvm.testing.parameter(conv2d_NCHWc_KCRSk, conv2d_NCHWc_KCRSk_fp32_acc)
13931394

13941395

1396+
@pytest.mark.skip("AttributeError: module 'numpy' has no attribute 'bool' raised from mxnet")
13951397
class TestDepthwiseConv2dNCHWcKCRSk(BaseConv2DValidator):
13961398
input_shapes = tvm.testing.parameter([(1, 24, 257, 257, 4), (24, 1, 3, 3, 4)])
13971399
test_func = tvm.testing.parameter(depthwise_conv2d_NCHWc_KCRSk_acc32)

0 commit comments

Comments
 (0)