Commit graph

7 commits

Author SHA1 Message Date
Ryan Kuester
9a32964be9
feat(compression): allocate resource variables in persistent buffer (#3013)
Allocate resource variables in a persistent buffer when the input
tensor is compressed. Extend tests to validate operation.

BUG=part of #2636
2024-12-16 16:48:04 +00:00
suleshahid
808ddbf757
Adds default values to MicroResourceVariable (#1750)
Currently we memset MicroResourceVariables buffers to 0 if it is null, and in reset we memset to 0 again.
This change makes it so that we memset to the zero_point instead.

To get the information of the zero_point value while reset, we need to store it in the MicroResourceVariable class.

BUG=[269648474](https://b.corp.google.com/issues/269648474)
2023-02-17 22:37:45 +00:00
Vamsi Krishna Manchala
95761fcfd0
TFLite Micro framework changes to support log refactor
This PR-

1. Changes the TFLite Micro Framework classes to eliminate the usage of `MicroErrorReporter` and `ErrorReporter` classes.
2. Keeps the version of the APIs, that expect ErrorReporter for backwards compatibility. 
	- This compatibility is limited to the bare minimum set of API currently being used.
	- The minimum support to the version of API expecting ErrorReporter will be removed as a follow-up PR, expected to be merged next week.
	- Any new applications or examples using TFLM should no longer be creating and passing-in an ErrorReporter. 


BUG=http://b/245802069
2022-09-19 19:03:54 +00:00
Nat Jeffries
47c8748c52
Add method to reset resource variables. (#948)
* Add method to reset resource variables.

Call this method from ResetVariableTensors.

* handle case where resource_variables_ is nullptr in micro_graph
2022-03-02 02:02:29 +00:00
Nat Jeffries
b9d0e7211e
Set resource variable buffers to 0 by default. (#786) 2021-12-15 22:18:32 +00:00
Nat Jeffries
284df73c5f
Features required to run 16x8 quantized SEANet model on TFLM (#618) 2021-10-25 15:48:14 -07:00
Nat Jeffries
26944780f4
TFLM changes to support resource variables. (#482) 2021-09-07 09:21:53 -07:00