TensorFlow Serving C++ API Documentation
Classes | Public Member Functions | Protected Attributes | List of all members
tensorflow::serving::internal_read_ptr_holder::ShardedReadPtrs< T > Class Template Reference

Public Member Functions

std::shared_ptr< const T > get () const
 
template<typename Factory >
void update (const Factory &f)
 

Protected Attributes

const int num_shards_
 
std::atomic< uint32 > index_ {0}
 
std::unique_ptr< PaddedThreadSafeSharedPtr[]> shards_
 

Detailed Description

template<typename T>
class tensorflow::serving::internal_read_ptr_holder::ShardedReadPtrs< T >

Definition at line 227 of file fast_read_dynamic_ptr.h.

Member Data Documentation

◆ num_shards_

template<typename T >
const int tensorflow::serving::internal_read_ptr_holder::ShardedReadPtrs< T >::num_shards_
protected
Initial value:
=
port::NumTotalCPUs() == -1 ? kRandomShards : port::NumTotalCPUs()

Definition at line 300 of file fast_read_dynamic_ptr.h.


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