Home
last modified time | relevance | path

Searched refs:EngineContext (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/compiler/tf2tensorrt/kernels/
Dtrt_engine_op.cc97 LRUCache<std::vector<TensorShape>, std::unique_ptr<EngineContext>,
121 Status ExecuteTrtEngine(OpKernelContext* ctx, EngineContext* engine_context,
137 StatusOr<std::pair<EngineContext*, int>> GetEngine(
697 StatusOr<std::pair<EngineContext*, int>> status = in ComputeAsync()
701 EngineContext* engine_context = status.ValueOrDie().first; in ComputeAsync()
742 EngineContext* engine_context, in ExecuteTrtEngine()
856 absl::make_unique<EngineContext>()); in BuildEngine()
862 StatusOr<std::pair<EngineContext*, int>> TRTEngineOp::GetEngine( in GetEngine()
865 static EngineContext empty_context; in GetEngine()
877 return std::pair<EngineContext*, int>(&empty_context, 0); in GetEngine()
[all …]
Dtrt_engine_op_test.cc225 EngineContext* ectx = cache->at({input_shape}).get(); in TEST_F()
251 EngineContext* ectx = cache->at({input_shape}).get(); in TEST_F()
279 EngineContext* ectx = cache->at({input_shape}).get(); in TEST_F()
Dtrt_engine_resource_ops.cc158 absl::make_unique<EngineContext>( in Compute()
209 const std::unique_ptr<EngineContext>& engine = pair.second; in Compute()
Dtrt_engine_resource_ops_test.cc160 absl::make_unique<EngineContext>(std::move(engine), in TEST_F()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/utils/
Dtrt_lru_cache.h121 struct EngineContext { struct
122 EngineContext() {} // Creates an empty context. in EngineContext() argument
123 EngineContext(TrtUniquePtrType<nvinfer1::ICudaEngine>&& input_cuda_engine, in EngineContext() function
128 EngineContext(TrtUniquePtrType<nvinfer1::ICudaEngine>&& input_cuda_engine, in EngineContext() function
207 EngineContext* GetEngineContext(const std::vector<TensorShape>& input_shapes);
213 EngineContext* GetEngineContext(const int profile_id);
219 LRUCache<std::vector<TensorShape>, std::unique_ptr<EngineContext>,
Dtrt_lru_cache.cc99 EngineContext* TRTEngineCacheResource::GetEngineContext( in GetEngineContext()
101 EngineContext* engine_context = nullptr; in GetEngineContext()
122 EngineContext* TRTEngineCacheResource::GetEngineContext(const int profile_id) { in GetEngineContext()