std1.0.0-beta-7 SafeC docs

std :: ml::gpu_rocm

Function std::rocm_relu_grad

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

int rocm_relu_grad(struct RocmBuf z, struct RocmBuf g, struct RocmBuf out)

out = z > 0 ? g : 0