From dd42c408a2ca2c4afeb537e0ae38261dc005cb28 Mon Sep 17 00:00:00 2001 From: xalbertoisorna <124703429+xalbertoisorna@users.noreply.github.com> Date: Fri, 7 Jun 2024 09:36:17 +0000 Subject: [PATCH] readme minor update proposal --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c9bddf1a4..19181ee0a 100644 --- a/README.md +++ b/README.md @@ -95,12 +95,15 @@ Some of the commonly used configuration options are described [here](docs/rst/op ```python from xmos_ai_tools.xinterpreters import TFLMHostInterpreter +input_data = ... # define your input data + ie = TFLMHostInterpreter() ie.set_model(model_path='path_to_xcore_model', params_path='path_to_xcore_params') -ie.set_tensor(ie.get_input_details()[0]['index'], value='input_data') +ie.set_tensor(ie.get_input_details()[0]['index'], value=input_data) ie.invoke() xformer_outputs = [] +num_of_outputs = len(ie.get_output_details()) for i in range(num_of_outputs): xformer_outputs.append(ie.get_tensor(ie.get_output_details()[i]['index'])) ```