std :: ml::gpu_rocm
Function std::rocm_upsample2x_nearest
int rocm_upsample2x_nearest(
struct RocmBuf in,
struct RocmBuf 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).