/external/tensorflow/tensorflow/lite/delegates/gpu/gl/ |
D | gl_buffer.cc | 24 absl::Status CopyBuffer(const GlBuffer& read_buffer, in CopyBuffer() 25 const GlBuffer& write_buffer) { in CopyBuffer() 50 GlBuffer::GlBuffer(GlBuffer&& buffer) in GlBuffer() function in tflite::gpu::gl::GlBuffer 51 : GlBuffer(buffer.target_, buffer.id_, buffer.bytes_size_, buffer.offset_, in GlBuffer() 56 GlBuffer& GlBuffer::operator=(GlBuffer&& buffer) { in operator =() 70 GlBuffer::~GlBuffer() { Invalidate(); } in ~GlBuffer() 72 void GlBuffer::Invalidate() { in Invalidate() 79 absl::Status GlBuffer::BindToIndex(uint32_t index) const { in BindToIndex() 84 absl::Status GlBuffer::MakeView(size_t offset, size_t bytes_size, in MakeView() 85 GlBuffer* gl_buffer) { in MakeView() [all …]
|
D | gl_buffer.h | 37 class GlBuffer { 41 GlBuffer(GLenum target, GLuint id, size_t bytes_size, size_t offset, in GlBuffer() function 50 GlBuffer() : GlBuffer(GL_INVALID_ENUM, GL_INVALID_INDEX, 0, 0, false) {} in GlBuffer() function 53 GlBuffer(GlBuffer&& buffer); 54 GlBuffer& operator=(GlBuffer&& buffer); 55 GlBuffer(const GlBuffer&) = delete; 56 GlBuffer& operator=(const GlBuffer&) = delete; 58 ~GlBuffer(); 81 absl::Status MakeView(size_t offset, size_t bytes_size, GlBuffer* gl_buffer); 84 GlBuffer MakeRef(); [all …]
|
D | gl_buffer_test.cc | 34 GlBuffer buffer; in TEST() 44 GlBuffer buffer; in TEST() 56 GlBuffer buffer; in TEST() 63 GlBuffer view; in TEST() 84 GlBuffer buffer; in TEST() 89 GlBuffer view1; in TEST() 91 GlBuffer view2; in TEST() 103 GlBuffer buffer; in TEST() 107 GlBuffer view1; in TEST() 110 GlBuffer view2; in TEST()
|
D | object_manager.h | 44 absl::Status RegisterBuffer(uint32_t id, GlBuffer buffer); 49 GlBuffer* FindBuffer(uint32_t id) const; 62 std::vector<std::unique_ptr<GlBuffer>> buffers_; 71 GlBuffer* gl_buffer); 76 GlBuffer* gl_buffer); 80 absl::Status CopyFromPHWC4Buffer(const GlBuffer& buffer, TensorFloat32* tensor);
|
D | object_manager.cc | 28 GlBuffer* gl_buffer) { in CreatePHWC4BufferFromTensor() 36 GlBuffer* gl_buffer) { in CreatePHWC4BufferFromTensorRef() 41 absl::Status CopyFromPHWC4Buffer(const GlBuffer& buffer, in CopyFromPHWC4Buffer() 50 absl::Status ObjectManager::RegisterBuffer(uint32_t id, GlBuffer buffer) { in RegisterBuffer() 54 buffers_[id] = absl::make_unique<GlBuffer>(std::move(buffer)); in RegisterBuffer() 64 GlBuffer* ObjectManager::FindBuffer(uint32_t id) const { in FindBuffer()
|
D | api2.cc | 53 absl::Status WrapSSBO(OpenGlBuffer ssbo, GlBuffer* buffer) { in WrapSSBO() 56 *buffer = GlBuffer(GL_SHADER_STORAGE_BUFFER, ssbo.id, size_bytes, 0, false); in WrapSSBO() 60 absl::Status MaybeAllocateGlBuffer(const TensorObjectDef& def, GlBuffer* ssbo) { in MaybeAllocateGlBuffer() 150 GlBuffer buffer; in SetExternalObject() 199 GlBuffer invalid_buffer; in Init() 230 GlBuffer ssbo; in MaybeAllocateInternalObject() 255 GlBuffer bbb; in MaybeAllocateExternalObject() 272 GlBuffer external_ssbo_;
|
D | runtime.cc | 138 GlBuffer* gl_buffer) { in MakeGlBuffer() 304 GlBuffer gl_buffer; in AllocateInternalObject() 333 GlBuffer gl_buffer; in AllocateConstObject() 356 GlBuffer shared_buffer; in PrepareForExecution()
|
D | api.cc | 257 GlBuffer ref; in NewRun()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/runtime/ |
D | shared_buffer.h | 43 bool Add(const ObjectData& data, GlBuffer* buffer) { in Add() 49 *buffer = GlBuffer(GL_SHADER_STORAGE_BUFFER, buffer_id_.id(), data.size(), in Add() 58 absl::Status CreateSharedGlBuffer(GlBuffer* gl_buffer) { in CreateSharedGlBuffer() 65 *gl_buffer = GlBuffer(GL_SHADER_STORAGE_BUFFER, buffer_id_.Release(), in CreateSharedGlBuffer()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/ |
D | converter.cc | 34 absl::Status WrapSSBO(OpenGlBuffer ssbo, GlBuffer* buffer) { in WrapSSBO() 37 *buffer = GlBuffer(GL_SHADER_STORAGE_BUFFER, ssbo.id, size_bytes, 0, false); in WrapSSBO() 151 GlBuffer input_ssbo; in Convert() 153 GlBuffer output_ssbo; in Convert() 246 GlBuffer input_ssbo; in Convert() 248 GlBuffer output_ssbo; in Convert() 296 GlBuffer input_obj; in Copy() 298 GlBuffer output_obj; in Copy() 323 GlBuffer gl_buffer; in Convert() 332 GlBuffer gl_buffer; in Convert()
|
D | converter_test.cc | 61 GlBuffer input_buffer; in RunFromTensorTest() 65 GlBuffer output_buffer; in RunFromTensorTest() 118 GlBuffer input_buffer; in RunToTensorTest() 122 GlBuffer output_buffer; in RunToTensorTest()
|
D | test_util.cc | 86 GlBuffer buffer; in Invoke() 95 GlBuffer buffer; in Invoke()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/converters/ |
D | phwc4_to_bhwc.h | 37 absl::Status Convert(const BHWC& shape, const GlBuffer& source, 39 GlBuffer* destination);
|
D | bhwc_to_phwc4.h | 37 absl::Status Convert(const BHWC& shape, const GlBuffer& source, 39 GlBuffer* destination);
|
D | phwc4_to_bhwc.cc | 69 const GlBuffer& source, in Convert() 71 GlBuffer* destination) { in Convert()
|
D | bhwc_to_phwc4.cc | 76 const GlBuffer& source, in Convert() 78 GlBuffer* destination) { in Convert()
|
D | bhwc_to_phwc4_test.cc | 56 GlBuffer input_buffer; in RunTest() 60 GlBuffer output_buffer; in RunTest()
|
D | phwc4_to_bhwc_test.cc | 57 GlBuffer input_buffer; in RunTest() 61 GlBuffer output_buffer; in RunTest()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/ |
D | gl_delegate.cc | 126 tensor_index, GlBuffer(GL_SHADER_STORAGE_BUFFER, ssbo, bytes_size, in BindBufferToTensor() 195 GlBuffer buffer; in Prepare() 233 GlBuffer buffer; in Prepare()
|