Home
last modified time | relevance | path

Searched refs:CLContext (Results 1 – 25 of 30) sorted by relevance

12

/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dcl_context.h29 class CLContext {
31 CLContext() {} in CLContext() function
32 CLContext(cl_context context, bool has_ownership);
35 CLContext(CLContext&& context);
36 CLContext& operator=(CLContext&& context);
37 CLContext(const CLContext&) = delete;
38 CLContext& operator=(const CLContext&) = delete;
40 ~CLContext();
54 absl::Status CreateCLContext(const CLDevice& device, CLContext* result);
58 CLContext* result);
Dcl_context.cc86 CLContext* result) { in CreateCLContext()
98 *result = CLContext(context, true); in CreateCLContext()
104 CLContext::CLContext(cl_context context, bool has_ownership) in CLContext() function in tflite::gpu::cl::CLContext
107 CLContext::CLContext(CLContext&& context) in CLContext() function in tflite::gpu::cl::CLContext
112 CLContext& CLContext::operator=(CLContext&& context) { in operator =()
121 CLContext::~CLContext() { Release(); } in ~CLContext()
123 void CLContext::Release() { in Release()
130 bool CLContext::IsFloatTexture2DSupported(int num_channels, DataType data_type, in IsFloatTexture2DSupported()
143 absl::Status CreateCLContext(const CLDevice& device, CLContext* result) { in CreateCLContext()
150 CLContext* result) { in CreateCLGLContext()
Dtensor.h96 CLContext* context);
120 absl::Status AllocateTensorMemory(const CLContext& context, const BHWC& shape,
124 absl::Status AllocateTensorMemory(const CLContext& context, const BHWDC& shape,
128 absl::Status CreateTensor(const CLContext& context, const BHWC& shape,
131 absl::Status CreateTensor(const CLContext& context, const BHWDC& shape,
134 absl::Status CreateSharedTensor(const CLContext& context, cl_mem memory,
139 absl::Status CreateSharedTensor(const CLContext& context, cl_mem memory,
Dtexture2d.cc25 CLContext* context, Texture2D* result) { in CreateTexture2D()
83 const Texture2DDescriptor& desc, CLContext* context) { in CreateFromTexture2DDescriptor()
95 absl::Status CreateTexture2DRGBA32F(int width, int height, CLContext* context, in CreateTexture2DRGBA32F()
102 absl::Status CreateTexture2DRGBA16F(int width, int height, CLContext* context, in CreateTexture2DRGBA16F()
109 CLContext* context, Texture2D* result) { in CreateTexture2DRGBA()
114 void* data, CLContext* context, in CreateTexture2DRGBA()
Dbuffer.cc29 const void* data, CLContext* context, in CreateBuffer()
78 CLContext* context) { in CreateFromBufferDescriptor()
88 absl::Status CreateReadOnlyBuffer(size_t size_in_bytes, CLContext* context, in CreateReadOnlyBuffer()
94 CLContext* context, Buffer* result) { in CreateReadOnlyBuffer()
98 absl::Status CreateReadWriteBuffer(size_t size_in_bytes, CLContext* context, in CreateReadWriteBuffer()
Dtexture2d.h64 CLContext* context);
78 absl::Status CreateTexture2DRGBA32F(int width, int height, CLContext* context,
82 absl::Status CreateTexture2DRGBA16F(int width, int height, CLContext* context,
86 CLContext* context, Texture2D* result);
89 void* data, CLContext* context,
Dbuffer.h66 CLContext* context);
75 absl::Status CreateReadOnlyBuffer(size_t size_in_bytes, CLContext* context,
79 CLContext* context, Buffer* result);
81 absl::Status CreateReadWriteBuffer(size_t size_in_bytes, CLContext* context,
Denvironment.h37 explicit Environment(CLDevice&& device, CLContext&& context,
49 CLContext& context() { return context_; } in context()
72 CLContext context_;
Dprogram_cache.h47 const CLContext& context, const CLDevice& device, CLKernel* result);
51 const CLContext& context,
54 absl::Status AddSerializedCache(const CLContext& context,
Dinference_context.h120 absl::Status AllocateMemory(CLContext* context);
122 absl::Status AllocateMemoryForConstTensors(CLContext* context);
124 absl::Status AllocateMemoryForVariableTensors(CLContext* context);
126 absl::Status AllocateMemoryForBuffers(CLContext* context);
128 absl::Status AllocateMemoryForStrongShapes(CLContext* context);
Dcl_program.h71 const CLContext& context, const CLDevice& device,
74 absl::Status CreateCLProgramFromBinary(const CLContext& context,
Dtensor.cc33 absl::Status AllocateTensorMemory(const CLContext& context, const BHWDC& shape, in AllocateTensorMemory()
192 absl::Status CreateImageBufferFromBuffer(const CLContext& context, in CreateImageBufferFromBuffer()
216 absl::Status CreateTensor(const CLContext& context, const BHWDC& shape, in CreateTensor()
239 absl::Status CreateTensorShared(const CLContext& context, const BHWDC& shape, in CreateTensorShared()
602 CLContext* context) { in CreateFromDescriptor()
624 absl::Status CreateTensor(const CLContext& context, const BHWC& shape, in CreateTensor()
630 absl::Status CreateTensor(const CLContext& context, const BHWDC& shape, in CreateTensor()
635 absl::Status CreateSharedTensor(const CLContext& context, cl_mem memory, in CreateSharedTensor()
643 absl::Status CreateSharedTensor(const CLContext& context, cl_mem memory, in CreateSharedTensor()
650 absl::Status AllocateTensorMemory(const CLContext& context, const BHWC& shape, in AllocateTensorMemory()
[all …]
Dprogram_cache.cc62 const CLContext& context, const CLDevice& device, CLKernel* result) { in GetOrCreateCLKernel()
80 const CLContext& context, in GetOrCreateCLKernel()
87 const CLContext& context, const CLDevice& device, in AddSerializedCache()
Dcl_command_queue.h121 const CLContext& context,
125 const CLContext& context,
Dcl_arguments.h39 CLContext* context, Arguments* args, std::string* code);
41 CLContext* context);
66 absl::Status AllocateObjects(const Arguments& args, CLContext* context);
Dgl_interop.h63 CLContext* context, CLMemory* memory);
69 CLContext* context, CLMemory* memory);
Denvironment.cc34 CLContext context; in CreateEnvironment()
86 Environment::Environment(CLDevice&& device, CLContext&& context, in Environment()
245 CLContext context; in CreateEnvironment()
Dserialization.h34 absl::Status Decode(CLContext* context,
Dlinear_storage.h55 const TensorLinearDescriptor& desc, CLContext* context);
Dcl_program.cc167 const CLContext& context, const CLDevice& device, in CreateCLProgram()
185 absl::Status CreateCLProgramFromBinary(const CLContext& context, in CreateCLProgramFromBinary()
Dcl_operation.h37 CLContext* context;
Dgl_interop.cc97 CLContext* context, CLMemory* memory) { in CreateClMemoryFromGlBuffer()
113 CLContext* context, CLMemory* memory) { in CreateClMemoryFromGlTexture()
Dlinear_storage.cc74 const TensorLinearDescriptor& desc, CLContext* context) { in CreateFromTensorLinearDescriptor()
Dinference_context.cc485 absl::Status InferenceContext::AllocateMemory(CLContext* context) { in AllocateMemory()
494 CLContext* context) { in AllocateMemoryForConstTensors()
503 CLContext* context) { in AllocateMemoryForVariableTensors()
521 absl::Status InferenceContext::AllocateMemoryForBuffers(CLContext* context) { in AllocateMemoryForBuffers()
575 CLContext* context) { in AllocateMemoryForStrongShapes()
Dcl_command_queue.cc283 const CLContext& context, in CreateCLCommandQueue()
314 const CLContext& context, in CreateProfilingCommandQueue()

12