Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/XL2248/MSCTD
/ SamplerState
Class
SamplerState
src_code/thumt1_code/thumt/utils/sampling.py:16–18 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
14
15
16
class
SamplerState(namedtuple(
"SamplerState"
,
17
(
"inputs"
,
"state"
,
"scores"
,
"flags"
))):
18
pass
19
20
21
def
_get_inference_fn(model_fns, features):
Callers
2
_sampling_step
Function · 0.70
random_sample
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected