Skip to content

Commit c9e25cd

Browse files
Replace the unused READY_WITH_RETENTION with the new VERY_LOW_POWER state.
PiperOrigin-RevId: 351189568 Change-Id: Icfa5b7ed3cd78fbbbb88552b4cab1efcbc525da2
1 parent 9349a09 commit c9e25cd

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎tensorflow/lite/experimental/acceleration/configuration/configuration.proto‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,11 @@ enum EdgeTpuPowerState {
213213
// active compared to off.
214214
READY = 2;
215215

216-
// Device is inactive but ready and all previous data is retained (e.g.
217-
// cached parameters).
218-
READY_WITH_RETENTION = 3;
219-
220216
// Minimum power active state.
221-
ACTIVE_MIN_POWER = 4;
217+
ACTIVE_MIN_POWER = 3;
218+
219+
// Very low performance, very low power.
220+
ACTIVE_VERY_LOW_POWER = 4;
222221

223222
// Low performance, low power.
224223
ACTIVE_LOW_POWER = 5;

‎tensorflow/lite/experimental/acceleration/configuration/proto_to_flatbuffer.cc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ EdgeTpuPowerState ConvertEdgeTpuPowerState(proto::EdgeTpuPowerState state) {
120120
return EdgeTpuPowerState_TPU_CORE_OFF;
121121
case proto::EdgeTpuPowerState::READY:
122122
return EdgeTpuPowerState_READY;
123-
case proto::EdgeTpuPowerState::READY_WITH_RETENTION:
124-
return EdgeTpuPowerState_READY_WITH_RETENTION;
125123
case proto::EdgeTpuPowerState::ACTIVE_MIN_POWER:
126124
return EdgeTpuPowerState_ACTIVE_MIN_POWER;
125+
case proto::EdgeTpuPowerState::ACTIVE_VERY_LOW_POWER:
126+
return EdgeTpuPowerState_ACTIVE_VERY_LOW_POWER;
127127
case proto::EdgeTpuPowerState::ACTIVE_LOW_POWER:
128128
return EdgeTpuPowerState_ACTIVE_LOW_POWER;
129129
case proto::EdgeTpuPowerState::ACTIVE:

0 commit comments

Comments
 (0)