std1.0.0-beta-7 SafeC docs

std :: ml::module

Function std::model_soft_update

#include <std/ml/module.h> source

generic<M: Parameterized> int model_soft_update(&M dst, const &M src, float tau)

dst = tau * src + (1 - tau) * dst over the whole state (same shapes): target networks, averaged generators. Returns 0 on a shape mismatch.