std :: ml::gpu_rocm
#include <std/ml/gpu_rocm.h> source ยท definition
#include <std/ml/gpu_rocm.h>
int rocm_mse_grad( struct RocmBuf y, struct RocmBuf t, struct RocmBuf dy, struct RocmBuf loss1, )
Fused MSE gradient: dy = 2 (y - t) and loss1[0] = sum((y - t)^2), in one pass.