MCPcopy Create free account
hub / github.com/Hzfinfdu/Diffusion-BERT / SampleClassBase

Class SampleClassBase

sample.py:5–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4
5class SampleClassBase(abc.ABC):
6 def sample(self, logits, x_0):
7 raise NotImplementedError
8
9 def post_process_sample_in_prediction(self, sample, x_0):
10 return sample
11
12
13class Categorical(SampleClassBase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected