Skip to content
fn

resample

int resample(IBackend & be, const int & src, const Request & r, Dtype dt, bool backward)

src resized as r asks (or, backward, a gradient taken back), in dt: float32 and float64 directly, float16 and bfloat16 through float32 by be's astype, as the rest of the CPU backend widens them.