DriftTexture · function
convTranspose2d
out[cout][oh][ow] from input[cin][h][w], with oh = (h − 1)·stride − 2·padding + kh: each input
pixel spread over the kernel at its strided place, which is how a decoder head upsamples.
Explained in DriftTexture.
function convTranspose2d(out: Float32Array, input: Float32Array, cin: number, h: number, w: number, weight: Float32Array, bias: Float32Array | null, cout: number, kh: number, kw: number, stride: number, padding: number): voidimport { convTranspose2d } from '@driftengine/texture';Parameters
| Parameter | Type | Description |
|---|---|---|
out | Float32Array | |
input | Float32Array | |
cin | number | |
h | number | |
w | number | |
weight | Float32Array | |
bias | Float32Array | null | |
cout | number | |
kh | number | |
kw | number | |
stride | number | |
padding | number |