MCPcopy Create free account
hub / github.com/tensorflow/tfjs / getPackedRGBAArraySizeFromMatrixShape

Function getPackedRGBAArraySizeFromMatrixShape

tfjs-backend-webgl/src/tex_util.ts:160–164  ·  view source on GitHub ↗
(
    rows: number, columns: number)

Source from the content-addressed store, hash-verified

158}
159
160export function getPackedRGBAArraySizeFromMatrixShape(
161 rows: number, columns: number): number {
162 const [w, h] = getPackedMatrixTextureShapeWidthHeight(rows, columns);
163 return w * h * 4;
164}
165
166export interface TextureConfig {
167 internalFormatFloat: number;

Callers

nothing calls this directly

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…