std1.0.0-beta-7 SafeC docs

std :: ml::gpu_rocm

Function std::rocm_half_sgd

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

int rocm_half_sgd(struct RocmHalfBuf w, struct RocmHalfBuf g, float lr)

w = round(w - lr * g), computed in fp32, in place.