I’ve been following the tutorial Classification using Accelerator and noticed that the provided Python script imports:
Python
from memryx import NeuralCompiler, Simulator
Show more lines
However, in SDK 2.1 (installed via pip and confirmed with mx_nc --version), the Simulator class is no longer available. Attempting to run the script results in:
ImportError: cannot import name 'Simulator' from 'memryx'
Environment details:
-
Hardware: Orange Pi 5 Max
-
OS: Debian-based (similar to Ubuntu 22.04)
-
SDK installed via
pipusing:pip3 install --extra-index-url https://developer.memryx.com/pip memryx -
SDK version: 2.1.0
Questions:
-
Has
Simulatorbeen deprecated in SDK 2.1? If so, what is the recommended approach for running inference in Python? -
Are there plans to introduce a Python API for hardware inference (similar to
NeuralAcceleratormentioned in some older examples)? -
Should tutorials be updated to use CLI tools like
mx_inferormx_benchfor inference instead?
Any guidance or updated examples for SDK 2.1 would be greatly appreciated. Thanks for your support!