Commit graph

5 commits

Author SHA1 Message Date
Esun Kim
183da3e302
Typo in code (#3447)
* Typo in code

* Format
2026-02-11 20:34:42 +00:00
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
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
26944780f4
TFLM changes to support resource variables. (#482) 2021-09-07 09:21:53 -07:00