MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Invalidate

Method Invalidate

tensorflow/lite/delegates/gpu/gl/gl_buffer.cc:71–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69GlBuffer::~GlBuffer() { Invalidate(); }
70
71void GlBuffer::Invalidate() {
72 if (has_ownership_ && id_ != GL_INVALID_INDEX) {
73 TFLITE_GPU_CALL_GL(glDeleteBuffers, 1, &id_).IgnoreError();
74 id_ = GL_INVALID_INDEX;
75 }
76}
77
78Status GlBuffer::BindToIndex(uint32_t index) const {
79 return TFLITE_GPU_CALL_GL(glBindBufferRange, target_, index, id_, offset_,

Callers

nothing calls this directly

Calls 1

IgnoreErrorMethod · 0.45

Tested by

no test coverage detected