std1.0.0-beta-7 SafeC docs

std :: ml::gpu_webgpu

Function std::webgpu_sgd_update

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

int webgpu_sgd_update(struct WebGpuBuf w, struct WebGpuBuf g, float lr, unsigned long n)

w[i] -= lr * g[i] for i < n, in place (any dtypes). Queued.