|
TensorFlow Serving C++ API Documentation
|
#include <loader.h>


Public Member Functions | |
| Status | EstimateResources (ResourceAllocation *estimate) const final |
Public Member Functions inherited from tensorflow::serving::Loader | |
| virtual | ~Loader ()=default |
| virtual Status | Load () |
| virtual Status | LoadWithMetadata (const Metadata &metadata) |
| virtual void | Unload ()=0 |
| virtual AnyPtr | servable ()=0 |
A Loader that is oblivious to resources. Its EstimateResources() method returns 0, thus effectively disabling resource-based safety checks in the serving system.
Loaders that are experimental, or run in environments that do not need the resource safety checks, can subclass ResourceUnsafeLoader instead of Loader.
|
inlinefinalvirtual |
Estimates the resources a servable will use.
IMPORTANT: This method's implementation must obey following requirements, which enable the serving system to reason correctly about which servables can be loaded safely:
Implements tensorflow::serving::Loader.