MCPcopy Index your code
hub / github.com/tensorflow/tfjs / submitQueue

Method submitQueue

tfjs-backend-webgpu/src/backend_webgpu.ts:289–309  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287 }
288
289 submitQueue() {
290 this.queue.submit([this.commandEncoder.finish()]);
291 this.commandEncoder = null;
292 this.dispatchCountInPass = 0;
293
294 this.commandQueueOwnedIds = new WeakSet<DataId>();
295
296 this.tensorDataPendingDisposal.forEach(d => {
297 this.releaseResource(d);
298 this.tensorMap.delete(d);
299 });
300
301 this.uniformPendingDisposal.forEach(
302 b => this.bufferManager.releaseBuffer(b));
303 this.stagingPendingDisposal.forEach(
304 b => this.bufferManager.releaseBuffer(b, false));
305
306 this.tensorDataPendingDisposal = [];
307 this.uniformPendingDisposal = [];
308 this.stagingPendingDisposal = [];
309 }
310
311 ensureCommandEncoderReady() {
312 if (!this.commandEncoder) {

Callers 6

getBufferDataMethod · 0.95
readDataGPUToCPUMethod · 0.95
copyBufferMethod · 0.95
readToGPUMethod · 0.95
recordAndSubmitMethod · 0.95
getQueryTimeMethod · 0.95

Calls 3

releaseResourceMethod · 0.95
deleteMethod · 0.80
releaseBufferMethod · 0.80

Tested by

no test coverage detected