node_modules/@tensorflow/tfjs/.yalc/@tensorflow/tfjs-core/dist/kernels/webgl/gpgpu_util.js
/**
 * This method writes a tensor to a packed texture in a way that respects how we
 * represent data using each texel's r,g,b,a channels. Specifically, we lay
 * out the four channels in two rows each containing two channels, so a single
 * texel can represent up to four values from the tensor. That means a texture
 * that has a channel width of 11 and channel height of 4 will have a texel
 * width of 6 and texel height of 2.
 *
 * rows, columns: Logical number of rows and columns in the tensor to be
 * uploaded.
 *
 * physicalRows, physicalCols: Channel dimensions of the texture that will hold
 * the tensor.
 *
 * width, height (internal parameters): Texel dimensions of the texture.
 */
This method writes a tensor to a packed texture in a way that respects how we
represent data using each texel's r,g,b,a channels. Specifically, we lay
out the four channels in two rows each containing two channels, so a single
texel can represent up to four values from the tensor. That means a texture
that has a channel width of 11 and channel height of 4 will have a texel
width of 6 and texel height of 2.

rows, columns: Logical number of rows and columns in the tensor to be
uploaded.

physicalRows, physicalCols: Channel dimensions of the texture that will hold
the tensor.

width, height (internal parameters): Texel dimensions of the texture.
This method writes a tensor to a packed texture in a way that respects how we represent data using each texel ' s r g b a channels . Specifically we lay out the four channels in two rows each containing two channels so a single texel can represent up to four values from the tensor . That means a texture that has a channel width of 11 and channel height of 4 will have a texel width of 6 and texel height of 2 . rows columns : Logical number of rows and columns in the tensor to be uploaded . physicalRows physicalCols : Channel dimensions of the texture that will hold the tensor . width height ( internal parameters ) : Texel dimensions of the texture .
function uploadMatrixToPackedTexture(gl, texture, batch, rows, columns, physicalRows, physicalCols, matrix, textureConfig) {
    var _a = tex_util.getPackedMatrixTextureShapeWidthHeight(physicalRows, physicalCols), w = _a[0], h = _a[1];
    var packedRGBA = new Float32Array(tex_util.getPackedRGBAArraySizeFromMatrixShape(physicalRows, physicalCols));
    tex_util.encodeMatrixToPackedRGBA(matrix, batch, rows, columns, packedRGBA);
    uploadDataToTexture(gl, texture, w, h, packedRGBA, gl.RGBA);
}
function uploadMatrixToPackedTexture ( gl , texture , batch , rows , columns , physicalRows , physicalCols , matrix , textureConfig ) { var _a = tex_util . getPackedMatrixTextureShapeWidthHeight ( physicalRows , physicalCols ) , w = _a [ 0 ] , h = _a [ 1 ] ; var packedRGBA = new Float32Array ( tex_util . getPackedRGBAArraySizeFromMatrixShape ( physicalRows , physicalCols ) ) ; tex_util . encodeMatrixToPackedRGBA ( matrix , batch , rows , columns , packedRGBA ) ; uploadDataToTexture ( gl , texture , w , h , packedRGBA , gl . RGBA ) ; }
This method writes a tensor to a packed texture in a way that respects how we
 represent data using each texel's r,g,b,a channels.
This method writes a tensor to a packed texture in a way that respects how we represent data using each texel ' s r g b a channels .