diff --git a/runtime/onert/sample/minimal-python/minimal.md b/runtime/onert/sample/minimal-python/minimal.md new file mode 100644 index 00000000000..a58969aebe2 --- /dev/null +++ b/runtime/onert/sample/minimal-python/minimal.md @@ -0,0 +1,19 @@ +# minimal.py — Basic Inference Example + +Demonstrates the simplest Python-API workflow to load an NNFW model, allocate inputs, run inference, and report success. + +## Purpose + +- Load an `.nnpackage` model +- Automatically query input tensor shapes +- Allocate zero-filled NumPy arrays for each input +- Perform a single inference call via `session.infer(...)` +- Print a confirmation message + +## Usage + +```bash +python minimal.py /path/to/your_model.nnpackage [backends] +``` +- `/path/to/your_model.nnpackage` – path to your NNFW package or model file +- `backends` (optional) – backend string (e.g. "cpu", "gpu"); defaults to "cpu" diff --git a/runtime/onert/sample/minimal-python/src/minimal.py b/runtime/onert/sample/minimal-python/minimal.py similarity index 100% rename from runtime/onert/sample/minimal-python/src/minimal.py rename to runtime/onert/sample/minimal-python/minimal.py