aboutsummaryrefslogtreecommitdiff
path: root/driver_library
AgeCommit message (Collapse)Author
2022-05-05Add support for inference cancellationDavide Grohmann
Send cancel inference messages to the ethosu subsystem to abort inference execution there. Also mark inference as aborted in the linux driver stack itself, so pending inference messages are not resent when resetting the firmware. Change-Id: I244c2b119fd7995d14e3859815abf2a00c7f0583
2022-05-02Add support for rejected inference responsesDavide Grohmann
Change-Id: I62e13df69c712ed4cf70766429b4cb13fc9c9dcb
2022-04-26Fix: always close fd when destructing buffersDavide Grohmann
Also always rethrow exceptions not swallow them Change-Id: I7a4b1e408858aa0d0128ca7bd6d6a7715662f9fb
2022-04-12Drop tflite and flatbuffer dependenciesDavide Grohmann
There is not real need for the linux_driver_stack to know about tflite and flatbuffers. A better approach is to just pass the buffer to the firmware to be processes, i.e., either parsed or executed. This solves issues when linux_driver_stack and firmware are not in sync with the same library versions. Change-Id: I9b2a12e69f37f61b1ac594433a15883fb1c67b9c
2022-03-14Network infoKristofer Jonsson
Add UAPI and core message that allows user space space to fetch information about network models built into the firmware. Change-Id: Ic92529bce3edd0a5499e691a566bd065da2a72ad
2022-03-10Firmware resident modelKristofer Jonsson
Support referencing a network model by index that has been built into the firmware binary. Change-Id: Idd5294376ea82503dfeafe1203dcc0694d296dfe
2022-01-17Updating tflite schema22.02-rc322.02-rc222.02-rc122.02Kristofer Jonsson
Change-Id: Iaf878efcbe42d7a658a76db868806114df9e4b27
2021-12-14const:ify userspace driver libraryPer Åstrand
Change-Id: I965a6f4c42fca1b3b4493e7eef3cbb75e236fe3a
2021-11-23Add support for int32 in inference_runner21.11Henrik Hoglind
Change-Id: Ic4605a22547ab797c638bfddd9719c69d495da75
2021-11-15Fix: do not leak file descriptors on errorsDavide Grohmann
When bailing out on errors in the constructors of Buffers or Networks, the open file descriptor should be closed since the descructor will never be called. Change-Id: I8e1954e9efd65b594cc9544e18d0bfbe0730f156
2021-10-27Improve granularity of wait call in Inference classDavide Grohmann
It now accepts a timeout expressed in nanoseconds. Change-Id: I77fb89c33dc117f846b86494883548ef3241f0ab
2021-10-20Fix: e-functions should throw an exception on errorDavide Grohmann
Change-Id: I99d77bf528ea7c6b7d444c24f6f7b712b281b181
2021-09-06Correct timescale of sleep for stubPer Åstrand
Change-Id: Idc818453362bd3cd4d1c35e1e2d1a9f0ccd7a0a6
2021-08-23Add weak linkage attributes for stubbing21.08-rc2Per Åstrand
Add weak linkage attribute to underlying kernel module and filedescriptors to be able to replace with stub methods together with an example stub implementation. Change-Id: I766c51fceede7df16c599bd9f1874e31c264776d
2021-08-13Do not expose device specific hw config in capabilities21.08-rc1Davide Grohmann
Change-Id: Ia90e2d74c3e071c6e3de381cfada9a5a155d7529
2021-06-10Add support for handling capabilities requestsDavide Grohmann
Change-Id: Id5aa197312c88b0c448dc085d8477ed67da24724
2021-04-12Add nullptr checks21.05-rc321.05-rc221.05Jonny Svärd
Change-Id: Ie76db24dec03a6b45c64070d89a83805397d2f1f
2021-03-31Update license headersAnton Moberg
Update all license headers to the correct years. Change-Id: Ie1aee82af91c744a3cdb949044334ade0d834c16
2021-03-25Add support for float32 in inference_runnerHenrik Hoglind
Change-Id: I1c618be058863a3a2457a849e70b22851aa91b3a
2020-11-2616 bit network support20.11Kristofer Jonsson
Change-Id: I65cd027dea115d2f50f302ebe997d6d2525e0d7e
2020-11-16Add APIs for PMU configuration in libraryPer Åstrand
Change-Id: I7694ab9dd5ff20c29feb0506bcf36a1cf4983243
2020-10-20Removing uapi/ethosu.h from ethosu.hppKristofer Jonsson
Change-Id: I535e4c9297cf0890fa1cb4f2d8b7cad7e0b4ee39
2020-10-16Clang formatKristofer Jonsson
Change-Id: I2ebac7df9c4716be7fee10ce4cba350e40860ca2
2020-09-17Support inferences with multiple inputs and outputsKristofer Jonsson
Build flatbuffers library. Update network class to extract IFM and OFM dimensions from the tflite file. Update the uapi and core apis to support up to 16 IFM and OFM buffers per inference. Change-Id: I2f2f177aa4c2d5f9f50f23eb33c44e01ec2cbe09
2020-08-27Initial commit20.08-rc220.08Kristofer Jonsson
Change-Id: I14b6becc908a0ac215769c32ee9c43db192ae6c8