Skip to content
class

RemainderBackward

RemainderBackward

Python wrappers

Public Python APIs implemented by this engine symbol.

a - floor(a / b) * b, with the sign of b. da = g, db = -g * (a // b).

Static methods

2
static

cpu_kernel

CpuStorage cpu_kernel(const CpuStorage & a, const CpuStorage & b, const int & shape, Dtype dt)
static

gpu_kernel

GpuStorage gpu_kernel(const GpuStorage & a, const GpuStorage & b, const int & shape, Dtype dt)

Methods

2
fn

grad_formula

int grad_formula(const int & grad_out)
fn

grad_formula_impl

int grad_formula_impl(const int & grad_out, const int & a, const int & b)