Home
last modified time | relevance | path

Searched refs:TpuCompilationCacheInterface (Results 1 – 20 of 20) sorted by relevance

/aosp_15_r20/external/tensorflow/tensorflow/core/tpu/kernels/
H A Dtpu_compilation_cache_interface.cc26 TpuCompilationCacheInterface::RefHolder::RefHolder( in RefHolder()
27 TpuCompilationCacheInterface* parent) in RefHolder()
33 TpuCompilationCacheInterface::RefHolder::~RefHolder() { in ~RefHolder()
39 void TpuCompilationCacheInterface::RefHolder::AddRef(CompiledSubgraph* entry) { in AddRef()
43 std::string TpuCompilationCacheInterface::RefHolder::DebugString() const { in DebugString()
51 TpuCompilationCacheInterface* parent, CompiledSubgraph* entry, int index) in CompilationCacheEntryRef()
114 TpuCompilationCacheInterface::TpuCompilationCacheInterface( in TpuCompilationCacheInterface() function in tensorflow::tpu::TpuCompilationCacheInterface
121 TpuCompilationCacheInterface::~TpuCompilationCacheInterface() { in ~TpuCompilationCacheInterface()
145 Status TpuCompilationCacheInterface::MarkEntryForEviction( in MarkEntryForEviction()
193 Status TpuCompilationCacheInterface::Release(int64_t subgraph_uid) { in Release()
[all …]
H A Dtpu_compilation_cache_interface.h58 CompilationCacheEntryRef(TpuCompilationCacheInterface* parent,
78 TpuCompilationCacheInterface* parent_; // Not owned.
86 class TpuCompilationCacheInterface : public ResourceBase {
88 explicit TpuCompilationCacheInterface(int64_t max_cache_size);
89 ~TpuCompilationCacheInterface() override;
177 explicit RefHolder(TpuCompilationCacheInterface* parent);
188 TpuCompilationCacheInterface* parent_; // Not owned.
321 TpuCompilationCacheInterface(const TpuCompilationCacheInterface&) = delete;
322 TpuCompilationCacheInterface& operator=(const TpuCompilationCacheInterface&) =
H A Dtpu_compilation_cache_factory.cc28 TpuCompilationCacheInterface* CreateCompilationCacheExternal() { in CreateCompilationCacheExternal()
36 static std::function<TpuCompilationCacheInterface*()>*
38 new std::function<TpuCompilationCacheInterface*()>(
43 std::function<TpuCompilationCacheInterface*()> GetCompilationCacheCreateFn() { in GetCompilationCacheCreateFn()
48 std::function<TpuCompilationCacheInterface*()> fn) { in SetCompilationCacheCreateFn()
51 new std::function<TpuCompilationCacheInterface*()>(fn); in SetCompilationCacheCreateFn()
H A Dtpu_configuration_ops.cc97 ResourceMgr* rmgr, tpu::TpuCompilationCacheInterface** compilation_cache) { in CreateTpuCompilationCache()
98 return rmgr->LookupOrCreate<tpu::TpuCompilationCacheInterface>( in CreateTpuCompilationCache()
100 compilation_cache, [&](tpu::TpuCompilationCacheInterface** new_cache) { in CreateTpuCompilationCache()
142 tpu::TpuCompilationCacheInterface* compilation_cache; in Compute()
267 OP_REQUIRES_OK(ctx, DeleteIfExists<tpu::TpuCompilationCacheInterface>( in Compute()
306 tpu::TpuCompilationCacheInterface* compilation_cache; in Compute()
314 tpu::TpuCompilationCacheInterface* local_compilation_cache; in Compute()
H A Dtpu_compilation_cache_external.h46 class TpuCompilationCacheExternal : public TpuCompilationCacheInterface {
49 : TpuCompilationCacheInterface(max_cache_size) {} in TpuCompilationCacheExternal()
65 ABSL_EXCLUSIVE_LOCKS_REQUIRED(TpuCompilationCacheInterface::mu_) override;
H A Dtpu_compilation_cache_factory.h25 std::function<TpuCompilationCacheInterface*()> GetCompilationCacheCreateFn();
28 std::function<TpuCompilationCacheInterface*()> fn);
H A Dtpu_compilation_cache_local_lookup.h32 explicit TpuCompilationCacheLocalLookup(TpuCompilationCacheInterface* cache);
48 TpuCompilationCacheInterface* cache_;
H A Dtpu_compilation_cache_entry_unloader.h28 explicit TpuCompilationCacheEntryUnloader(TpuCompilationCacheInterface* cache) in TpuCompilationCacheEntryUnloader()
62 TpuCompilationCacheInterface* cache_; // Not owned.
H A Dcompiled_subgraph.h29 class TpuCompilationCacheInterface; variable
106 TpuCompilationCacheInterface* parent = nullptr; // Not owned.
H A Dtpu_compilation_cache_service.h40 tpu::TpuCompilationCacheInterface* cache);
60 tpu::TpuCompilationCacheInterface* cache_;
H A Dtpu_handle_to_key_op.cc40 tpu::TpuCompilationCacheInterface* cache; in Compute()
41 OP_REQUIRES_OK(ctx, rm->Lookup<tpu::TpuCompilationCacheInterface>( in Compute()
H A Dtpu_compilation_cache_service.cc28 using ::tensorflow::tpu::TpuCompilationCacheInterface;
34 ::grpc::ServerBuilder* server_builder, TpuCompilationCacheInterface* cache) in TpuCompilationCacheService()
H A Dtpu_pod_state.cc56 tpu::TpuCompilationCacheInterface* compilation_cache) { in ConstructCacheService()
148 tpu::TpuCompilationCacheInterface* compilation_cache, in ConstructTpuPodState()
H A Dtpu_compile_op_common.cc255 TpuCompilationCacheInterface* cache; in ComputeInternal()
256 TF_RETURN_IF_ERROR(rm->Lookup<TpuCompilationCacheInterface>( in ComputeInternal()
H A Dtpu_pod_state.h57 tpu::TpuCompilationCacheInterface* compilation_cache,
H A Dtpu_compilation_cache_local_lookup.cc21 TpuCompilationCacheInterface* cache) in TpuCompilationCacheLocalLookup()
H A Dtpu_configuration_ops.h29 ResourceMgr* rmgr, tpu::TpuCompilationCacheInterface** compilation_cache);
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xrt/kernels/
H A Dtpu_compile_ops.cc187 tpu::TpuCompilationCacheInterface* cache; in Compute()
188 OP_REQUIRES_OK(ctx, rm->Lookup<tpu::TpuCompilationCacheInterface>( in Compute()
248 tpu::TpuCompilationCacheInterface* cache; in Compute()
249 OP_REQUIRES_OK(ctx, rm->Lookup<tpu::TpuCompilationCacheInterface>( in Compute()
H A Dtpu_execute_op.cc322 tpu::TpuCompilationCacheInterface* cache; in DoWork()
323 TF_RETURN_IF_ERROR(rm->Lookup<tpu::TpuCompilationCacheInterface>( in DoWork()
/aosp_15_r20/external/tensorflow/tensorflow/dtensor/cc/
H A Ddtensor_tpu_kernels.cc135 tpu::TpuCompilationCacheInterface* compilation_cache; in InitializeInternal()
217 tpu::TpuCompilationCacheInterface* local_compilation_cache; in InitializeInternal()