diff options
Diffstat (limited to 'driver_library/python/README.md')
-rw-r--r-- | driver_library/python/README.md | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/driver_library/python/README.md b/driver_library/python/README.md index 7fae749..cc67ad9 100644 --- a/driver_library/python/README.md +++ b/driver_library/python/README.md @@ -165,8 +165,8 @@ object: ```python # from file: -network_file = "/path/to/model.tflite" -network_buffer = driver.Buffer(device, network_file) +data_file = "/path/to/data.bin" +buffer = driver.Buffer(device, data_file) # from numpy: ifm_zeros = numpy.zeros(ifm_size, dtype=np.uint8) @@ -174,11 +174,15 @@ ifm_buffer = driver.Buffer(device, ifm_size) ifm_buffer.from_buffer(ifm_zeros.data) ``` -To create a network object, provide memory buffer for the model file and -created device: +To create a network object, provide the model file or a byte array with the +network data and the created device: ```python -network = driver.Network(device, network_buffer) +# from file: +network = driver.Network(device, "path/to/model.tflite") + +# from byte array: +network = driver.Network(device, network_data) ``` Inference object is instantiated with a network object and lists of input |