std1.0.0-beta-7 SafeC docs

std :: ml::gpu_cuda

Function std::cuda_upsample2x_nearest

#include <std/ml/gpu_cuda.h> source ยท definition

int cuda_upsample2x_nearest(
    struct CudaBuf in,
    struct CudaBuf out,
    unsigned long planes,
    unsigned long h,
    unsigned long w,
)

Nearest-neighbour 2x upsample of 'planes' row-major h x w planes into planes x 2h x 2w: out[p][y][x] = in[p][y/2][x/2] (cnn.h's FeatureMap::upsample2x_nearest).