Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable tests depending on iree-model-artifacts GCS bucket. #19127

Merged
merged 2 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
Loading