Skip to content

Commit

Permalink
Disable tests depending on iree-model-artifacts GCS bucket. (iree-org…
Browse files Browse the repository at this point in the history
…#19127)

See iree-org#18518. These tests have
started failing since the GCS bucket is now returning 403 errors.
  • Loading branch information
ScottTodd authored and Groverkss committed Nov 29, 2024
1 parent 85f02a4 commit a6557a2
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# REQUIRES: llvmcpu
# REQUIRES: bugfix
# Numeric error (#9796)
# File is inaccessible (#18518)
# RUN: %PYTHON -m iree_tfl_tests.mobilebert_tf2_quant_test --target_backend=llvmcpu --artifacts_dir=%t
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# REQUIRES: llvmcpu
# REQUIRES: bugfix
# File is inaccessible (#18518)
# RUN: %PYTHON -m iree_tfl_tests.mobilenet_v1_test --target_backend=llvmcpu --artifacts_dir=%t
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# REQUIRES: llvmcpu
# REQUIRES: bugfix
# File is inaccessible (#18518)
# RUN: %PYTHON -m iree_tfl_tests.mobilenet_v3-large_uint8_test --target_backend=llvmcpu --artifacts_dir=%t
# TODO(#14830): Enable the test.
# XFAIL: *
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# REQUIRES: llvmcpu
# REQUIRES: bugfix
# File is inaccessible (#18518)
# RUN: %PYTHON -m iree_tfl_tests.posenet_i8_test --target_backend=llvmcpu --artifacts_dir=%t
# XFAIL: *
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# REQUIRES: llvmcpu
# REQUIRES: bugfix
# File is inaccessible (#18518)
# RUN: %PYTHON -m iree_tfl_tests.resnet_50_int8_test --target_backend=llvmcpu -artifacts_dir=%t
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# Returns a sample image in the Imagenet dataset in uint8.
def generate_input(workdir, input_details):
# We use an image of apples since this is an easy example.
# TODO(#18518): Migrate this file to a new (ideally public) location
img_path = "https://storage.googleapis.com/iree-model-artifacts/ILSVRC2012_val_00000023.JPEG"
local_path = "/".join([workdir, "ILSVRC2012_val_00000023.JPEG"])
urllib.request.urlretrieve(img_path, local_path)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from . import squad_test_data
from . import test_util

# TODO(#18518): Migrate this file to a new (ideally public) location
# Source https://tfhub.dev/iree/lite-model/mobilebert/int8/1
model_path = "https://storage.googleapis.com/iree-model-artifacts/mobilebert-baseline-tf2-quant.tflite"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import numpy
from . import test_util

# TODO(#18518): Migrate this file to a new (ideally public) location
model_path = "https://storage.googleapis.com/iree-model-artifacts/tflite-integration-tests/mobilenet_v1.tflite"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from . import imagenet_test_data
from . import test_util

# TODO(#18518): Migrate this file to a new (ideally public) location
# Source https://tfhub.dev/iree/lite-model/mobilenet_v3_large_100_224/uint8/1
model_path = "https://storage.googleapis.com/iree-model-artifacts/mobilenet_v3-large_224_1.0_uint8.tflite"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from PIL import Image

# TODO(#18518): Migrate these files to a new (ideally public) location
model_path = "https://storage.googleapis.com/iree-model-artifacts/tflite-integration-tests/posenet_i8.tflite"
model_input = "https://storage.googleapis.com/iree-model-artifacts/tflite-integration-tests/posenet_i8_input.jpg"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from . import imagenet_test_data
from . import test_util

# TODO(#18518): Migrate this file to a new (ideally public) location
# Model is INT8 quantized but inputs and outputs are FP32.
model_path = "https://storage.googleapis.com/tf_model_garden/vision/resnet50_imagenet/resnet_50_224_int8.tflite"

Expand Down
3 changes: 3 additions & 0 deletions tests/e2e/stablehlo_models/mnist_train_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# TODO(#18518): re-enable when the test remote files are accessible again
return()

# These tests use compiler APIs as well as runtime APIs.
#
# These tests perform linking via the Compiler API, which is only supported
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from iree.compiler.tools import InputType, compile_file
from iree.runtime import load_vm_flatbuffer_file

# TODO(#18518): Migrate this file to a new (ideally public) location
MODEL_ARTIFACTS_URL = "https://storage.googleapis.com/iree-model-artifacts/mnist_train.2bec0cb356ae7c059e04624a627eb3b15b0a556cbd781bbed9f8d32e80a4311d.tar"

Tensor = TypeVar("Tensor")
Expand Down

0 comments on commit a6557a2

Please sign in to comment.