std :: ml::gpu_rocm
Function std::rocm_half_bias
int rocm_half_bias(
struct RocmHalfBuf y,
struct RocmHalfBuf bias,
unsigned long rows,
unsigned long channels,
unsigned long plane,
int relu,
)y[r][c][p] += bias[c] (rows x channels x plane, row-major), then ReLU when relu: a linear layer's bias (plane 1) or an NCHW convolution's.