Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::serving::SharedPtrHandle
#include <servable_handle.h>
An implementation of UntypedServableHandle using shared_ptr to do ref-counting on the Loader that owns the Servable.
Summary
Inheritance
Inherits from:
tensorflow::serving::UntypedServableHandle
Public functions
|
id() const override
|
virtual const ServableId &
|
servable() override
|
virtual AnyPtr
|
Public functions
SharedPtrHandle
SharedPtrHandle(
const ServableId & id,
std::shared_ptr< Loader > loader
)
id
virtual const ServableId & id() const override
servable
virtual AnyPtr servable() override
~SharedPtrHandle
~SharedPtrHandle() override=default
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-19 UTC.
[null,null,["Last updated 2024-01-19 UTC."],[],[],null,["# tensorflow::serving::SharedPtrHandle Class Reference\n\ntensorflow::serving::SharedPtrHandle\n====================================\n\n\n`#include \u003cservable_handle.h\u003e`\n\nAn implementation of [UntypedServableHandle](/tfx/serving/api_docs/cc/class/tensorflow/serving/untyped-servable-handle#classtensorflow_1_1serving_1_1_untyped_servable_handle) using shared_ptr to do ref-counting on the [Loader](/tfx/serving/api_docs/cc/class/tensorflow/serving/loader#classtensorflow_1_1serving_1_1_loader) that owns the Servable.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: [tensorflow::serving::UntypedServableHandle](/tfx/serving/api_docs/cc/class/tensorflow/serving/untyped-servable-handle)\n\n| ### Constructors and Destructors ||\n|---|---|\n| [SharedPtrHandle](#classtensorflow_1_1serving_1_1_shared_ptr_handle_1aa0a25e00dc5ffd5a28d8739ab5b9f8e7)`(const ServableId & id, std::shared_ptr\u003c `[Loader](/tfx/serving/api_docs/cc/class/tensorflow/serving/loader#classtensorflow_1_1serving_1_1_loader)` \u003e loader)` ||\n| [~SharedPtrHandle](#classtensorflow_1_1serving_1_1_shared_ptr_handle_1aded6638ac09e869c5743e9146febafcc)`()` ||\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------|------------------------------|\n| [id](#classtensorflow_1_1serving_1_1_shared_ptr_handle_1af48bb8b27817208cf94de66c63193b59)`() const override` | `virtual const ServableId &` |\n| [servable](#classtensorflow_1_1serving_1_1_shared_ptr_handle_1aa885f8d3a28b5cedd37fea9c96c1b536)`() override` | `virtual AnyPtr` |\n\nPublic functions\n----------------\n\n### SharedPtrHandle\n\n```gdscript\n SharedPtrHandle(\n const ServableId & id,\n std::shared_ptr\u003c Loader \u003e loader\n)\n``` \n\n### id\n\n```gdscript\nvirtual const ServableId & id() const override\n``` \n\n### servable\n\n```text\nvirtual AnyPtr servable() override\n``` \n\n### \\~SharedPtrHandle\n\n```text\n ~SharedPtrHandle() override=default\n```"]]