Skip to content

Commit

Permalink
Update PyPi Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
panickal-xmos committed Feb 14, 2022
1 parent 067e814 commit 47f2802
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions experimental/xformer/python/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
# XMOS AI Tools

## Usage

### Using xformer
```
from xmos_ai_tools import xformer as xf
xf.convert("source model path", "converted model path", params=None)
```

### Using the xcore tflm host interpreter
```
from xmos_ai_tools import xcore_tflm_host_interpreter as xtflm
ie = xtflm.XTFLMInterpreter(model_content=xformed_model)
ie.set_input_tensor(0, input_tensor)
ie.invoke()
xformer_outputs = []
for i in range(num_of_outputs):
xformer_outputs.append(ie.get_output_tensor(i))
```

0 comments on commit 47f2802

Please sign in to comment.