Skip to main content

Model Explorer Adapter

The Model Explorer Adapter provides graph extraction and visualization conversion for ML models (TensorFlow SavedModel, GraphDef, FlatBuffer/TFLite, StableHLO/MLIR) to Model Explorer's visualization JSON format.

It is implemented as a stable C-ABI library (libai_edge_model_explorer_adapter.so / .dylib) with a pure Python ctypes FFI wrapper for universal ABI stability across Python versions without pybind11 compile-time matrix bloat.

Install from PyPI

Install ai-edge-model-explorer-adapter via pip from PyPI. For example, in a Python virtual environment:

% python3 -m venv ~/tmp/venv
% source ~/tmp/venv/bin/activate
(venv) $ pip install ai-edge-model-explorer-adapter

Use the Package

After installation, the package can be imported directly:

import ai_edge_model_explorer_adapter as adapter

config = adapter.VisualizeConfig()
json_str = adapter.ConvertFlatbufferDirectlyToJson(config, "model.tflite")
print(json_str)

Build and Install Locally

Declarative Bazel Build

Build the Python wheel directly using Bazel:

bazel build -c opt //python/ai_edge_model_explorer_adapter:wheel

The resulting wheel is located under bazel-bin/: bazel-bin/python/ai_edge_model_explorer_adapter/

Install

Install the resulting wheel via pip:

(venv) $ pip install \
  bazel-bin/python/ai_edge_model_explorer_adapter/*.whl

Metadata

Release files for ai-edge-model-explorer-adapter 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for ai-edge-model-explorer-adapter 0.2.0
File Interpreter ABI Platform
ai_edge_model_explorer_adapter-0.2.0-py3-none-manylinux_2_27_x86_64.whl Python 3 none Linux glibc 2.27+ x86-64 Details
ai_edge_model_explorer_adapter-0.2.0-py3-none-manylinux_2_27_aarch64.whl Python 3 none Linux glibc 2.27+ ARM64 Details
ai_edge_model_explorer_adapter-0.2.0-py3-none-macosx_12_0_arm64.whl Python 3 none macOS 12.0+ ARM64 Details

Total release size: 340.5 MB

Release files / ai_edge_model_explorer_adapter-0.2.0-py3-none-manylinux_2_27_x86_64.whl

Download URL ai_edge_model_explorer_adapter-0.2.0-py3-none-manylinux_2_27_x86_64.whl
Size 131.6 MB
Tags Linux glibc 2.27+ x86-64 Python 3
SHA-256 checksum
How to use checksums
a09ef992bc6de85ba6451dc7fda46d06de339f451561c57e378bd50c478e28cb
BLAKE2b-256 checksum
How to use checksums
0fc2bb3ed7dde8e31dface3a2310c7444b9326a900480a10eb0f56beb410c475
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / ai_edge_model_explorer_adapter-0.2.0-py3-none-manylinux_2_27_aarch64.whl

Download URL ai_edge_model_explorer_adapter-0.2.0-py3-none-manylinux_2_27_aarch64.whl
Size 105.8 MB
Tags Linux glibc 2.27+ ARM64 Python 3
SHA-256 checksum
How to use checksums
a602424f31cea2646a12296e49b04591edce5ac0936a77046d942207b2c42a91
BLAKE2b-256 checksum
How to use checksums
caf394b32c5058512e25604ee1f18c79553613d2f1ba6d052e126d896f7c13e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / ai_edge_model_explorer_adapter-0.2.0-py3-none-macosx_12_0_arm64.whl

Download URL ai_edge_model_explorer_adapter-0.2.0-py3-none-macosx_12_0_arm64.whl
Size 103.0 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
8a95a9e24b610189c7258b036634dfc9dc3e768ed622ff750f19459961d26ecd
BLAKE2b-256 checksum
How to use checksums
ec319227bae801dc3e6f740778ff4ac28b862c5dee67b2949371ac3e6887788d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.2.0 This release

3 release files

0.1.9

12 release files

0.1.8

12 release files

0.1.5

12 release files

0.1.3

12 release files

0.1.2

12 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page