Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions runtime/onert/sample/minimal-python/minimal.md
Original file line number Diff line number Diff line change
@@ -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"