Google Colaboratory (Colab) Notebooks

These Colab notebooks contain interactive sample applications using IREE's Python bindings and ML framework integrations.

Notebooks

FrameworkNotebook fileDescriptionLink
Genericlow_level_invoke_function.ipynbShows off some concepts of the low level IREE python bindingsOpen In Colab
PyTorchpytorch_jit.ipynbUses SHARK-Turbine for eager execution in a PyTorch sessionOpen In Colab
TensorFlowedge_detection.ipynbPerforms image edge detection using TF and IREEOpen In Colab
TensorFlowmnist_training.ipynbCompile, train, and execute a neural network with IREEOpen In Colab
TensorFlowresnet.ipynbLoads a pretrained ResNet50 model and runs it using IREEOpen In Colab
TensorFlowtensorflow_hub_import.ipynbRuns a pretrained MobileNet V2 model using IREEOpen In Colab
TFLitetflite_text_classification.ipynbRuns a pretrained text classification model using IREEOpen In Colab

Working with GitHub

Refer to Colab's GitHub demo for general information about using Colab with GitHub.

To make changes to a notebook in this repository, one possible workflow is:

  • Open or create the notebook in Colab
  • Connect to a hosted or local runtime
  • Make your changes, run the notebook, etc.
  • Download the modified notebook using File > Download .ipynb
  • Move the downloaded notebook file into a clone of this repository and submit a pull request

Testing

This notebooks are tested continuously by the samples.yml CI job.