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

Nightly 'samples' build of Colab notebooks broken recently #18919

Open
ScottTodd opened this issue Oct 28, 2024 · 0 comments
Open

Nightly 'samples' build of Colab notebooks broken recently #18919

ScottTodd opened this issue Oct 28, 2024 · 0 comments
Labels
bindings/python Python wrapping IREE's C API bug 🐞 Something isn't working integrations/tensorflow TensorFlow model import and conversion

Comments

@ScottTodd
Copy link
Member

What happened?

https://github.com/iree-org/iree/actions/workflows/samples.yml has been failing for two days. Sample logs: https://github.com/iree-org/iree/actions/runs/11547361887/job/32137116277

tail of logs:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
ImportError: numpy.core.multiarray failed to import

The above exception was the direct cause of the following exception:

SystemError                               Traceback (most recent call last)
Cell In[9], line 1
----> 1 interpreter = tflite.Interpreter(
      2 model_path=str(ARTIFACTS_DIR.joinpath("text_classification.tflite")))
      3 interpreter.allocate_tensors()
      4 input_details = interpreter.get_input_details()

File ~/work/iree/iree/.notebook.venv/lib/python3.11/site-packages/tflite_runtime/interpreter.py:470, in Interpreter.__init__(self, model_path, model_content, experimental_delegates, num_threads, experimental_op_resolver_type, experimental_preserve_all_tensors, experimental_disable_delegate_clustering, experimental_default_delegate_latest_features)
    464 custom_op_registerers_by_name = [
    465     x for x in self._custom_op_registerers if isinstance(x, str)
    466 ]
    467 custom_op_registerers_by_func = [
    468     x for x in self._custom_op_registerers if not isinstance(x, str)
    469 ]
--> 470 self._interpreter = _interpreter_wrapper.CreateWrapperFromFile(
    471 model_path,
    472 op_resolver_id,
    473 custom_op_registerers_by_name,
    474 custom_op_registerers_by_func,
    475 experimental_preserve_all_tensors,
    476 experimental_disable_delegate_clustering,
    477 int(num_threadsor1),
    478 experimental_default_delegate_latest_features,
    479 )
    480 if not self._interpreter:
    481   raise ValueError('Failed to open {}'.format(model_path))

SystemError: <built-in method CreateWrapperFromFile of PyCapsule object at 0x7fdc9b6ea220> returned a result with an exception set

+ deactivate
F
======================================================================
FAIL: test_tensorflow_hub_import.ipynb (__main__.ColabNotebookTests.test_tensorflow_hub_import.ipynb)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/iree/iree/./samples/colab/test_notebooks.py", line 48, in unit_test
    self.assertEqual(completed_process.returncode, 0)
AssertionError: 1 != 0

======================================================================
FAIL: test_tflite_text_classification.ipynb (__main__.ColabNotebookTests.test_tflite_text_classification.ipynb)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/iree/iree/./samples/colab/test_notebooks.py", line 48, in unit_test
    self.assertEqual(completed_process.returncode, 0)
AssertionError: 1 != 0

----------------------------------------------------------------------
Ran 10 tests in 547.453s

FAILED (failures=2, skipped=2)

There is also another error higher up:

CompilerToolError: Error invoking IREE compiler tool iree-compile
Error code: 1
Diagnostics:
failed to translate executables
-:709:12: error: 'tensor.extract_slice' op unhandled operation when converting to destination passing style
-:267:3: note: called from
-:709:12: error: failed to run translation of source executable to target executable for backend #hal.executable.target<"vmvx", "vmvx-bytecode-fb", {ukernels = "none"}>
-:267:3: note: called from

Steps to reproduce your issue

  1. Workflow file: https://github.com/iree-org/iree/blob/main/.github/workflows/samples.yml
  2. Test script: https://github.com/iree-org/iree/blob/main/samples/colab/test_notebooks.py

Check if the notebooks also fail on Colab itself: https://github.com/iree-org/iree/tree/main/samples/colab (the test script simulates running in Colab but software package versions can differ easily)

What component(s) does this issue relate to?

Python

Version information

Not sure from the current logs. Check the date ranges against https://github.com/iree-org/iree/releases

Additional context

No response

@ScottTodd ScottTodd added bindings/python Python wrapping IREE's C API bug 🐞 Something isn't working integrations/tensorflow TensorFlow model import and conversion labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bindings/python Python wrapping IREE's C API bug 🐞 Something isn't working integrations/tensorflow TensorFlow model import and conversion
Projects
None yet
Development

No branches or pull requests

1 participant