Replace the unused READY_WITH_RETENTION with the new VERY_LOW_POWER state.

PiperOrigin-RevId: 351189568
Change-Id: Icfa5b7ed3cd78fbbbb88552b4cab1efcbc525da2
This commit is contained in:
A. Unique TensorFlower 2021-01-11 10:53:22 -08:00 committed by TensorFlower Gardener
parent 9349a096eb
commit c9e25cdf51
2 changed files with 6 additions and 7 deletions
tensorflow/lite/experimental/acceleration/configuration

View File

@ -213,12 +213,11 @@ enum EdgeTpuPowerState {
// active compared to off.
READY = 2;
// Device is inactive but ready and all previous data is retained (e.g.
// cached parameters).
READY_WITH_RETENTION = 3;
// Minimum power active state.
ACTIVE_MIN_POWER = 4;
ACTIVE_MIN_POWER = 3;
// Very low performance, very low power.
ACTIVE_VERY_LOW_POWER = 4;
// Low performance, low power.
ACTIVE_LOW_POWER = 5;

View File

@ -120,10 +120,10 @@ EdgeTpuPowerState ConvertEdgeTpuPowerState(proto::EdgeTpuPowerState state) {
return EdgeTpuPowerState_TPU_CORE_OFF;
case proto::EdgeTpuPowerState::READY:
return EdgeTpuPowerState_READY;
case proto::EdgeTpuPowerState::READY_WITH_RETENTION:
return EdgeTpuPowerState_READY_WITH_RETENTION;
case proto::EdgeTpuPowerState::ACTIVE_MIN_POWER:
return EdgeTpuPowerState_ACTIVE_MIN_POWER;
case proto::EdgeTpuPowerState::ACTIVE_VERY_LOW_POWER:
return EdgeTpuPowerState_ACTIVE_VERY_LOW_POWER;
case proto::EdgeTpuPowerState::ACTIVE_LOW_POWER:
return EdgeTpuPowerState_ACTIVE_LOW_POWER;
case proto::EdgeTpuPowerState::ACTIVE: