TensorFlow Serving C++ API Documentation
Public Member Functions | List of all members
tensorflow::serving::ResourcePreservingPolicy Class Referencefinal
Inheritance diagram for tensorflow::serving::ResourcePreservingPolicy:
Inheritance graph
[legend]
Collaboration diagram for tensorflow::serving::ResourcePreservingPolicy:
Collaboration graph
[legend]

Public Member Functions

absl::optional< ServableActionGetNextAction (const std::vector< AspiredServableStateSnapshot > &all_versions) const override
 

Additional Inherited Members

- Public Types inherited from tensorflow::serving::AspiredVersionPolicy
enum class  Action : int { kLoad , kUnload }
 The different actions that could be recommended by a policy. More...
 
- Static Protected Member Functions inherited from tensorflow::serving::AspiredVersionPolicy
static absl::optional< ServableIdGetHighestAspiredNewServableId (const std::vector< AspiredServableStateSnapshot > &all_versions)
 

Detailed Description

Definition at line 42 of file resource_preserving_policy.h.

Member Function Documentation

◆ GetNextAction()

absl::optional< AspiredVersionPolicy::ServableAction > tensorflow::serving::ResourcePreservingPolicy::GetNextAction ( const std::vector< AspiredServableStateSnapshot > &  all_versions) const
overridevirtual

Takes in a vector of state snapshots of all versions of a servable stream and returns an action to be performed for a particular servable version, depending only on the states of all the versions.

If no action is to be performed, we don't return an action, meaning that the servable stream is up to date.

Implements tensorflow::serving::AspiredVersionPolicy.

Definition at line 25 of file resource_preserving_policy.cc.


The documentation for this class was generated from the following files: