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