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

Function getBytesPerElement

tfjs-backend-webgpu/src/texture_manager.ts:134–140  ·  view source on GitHub ↗
(format: GPUTextureFormat)

Source from the content-addressed store, hash-verified

132}
133
134function getBytesPerElement(format: GPUTextureFormat) {
135 if (format === 'rgba8unorm') {
136 return 16;
137 } else {
138 throw new Error(`${format} is not supported!`);
139 }
140}

Callers 2

acquireTextureMethod · 0.85
releaseTextureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…