Skip to main content

Python class

RejectionSamplerWithResiduals

RejectionSamplerWithResiduals

class max.nn.RejectionSamplerWithResiduals(device, top_k=1, temperature=1.0, eps=1e-10, seed=0, debug=False)

source

Bases: Module

A simple rejection sampler.

Parameters: