MCPcopy Create free account
hub / github.com/LeCAR-Lab/model-based-diffusion / step

Function step

mbd/utils.py:7–9  ·  view source on GitHub ↗
(state, u)

Source from the content-addressed store, hash-verified

5# evaluate the diffused uss
6def eval_us(step_env, state, us):
7 def step(state, u):
8 state = step_env(state, u)
9 return state, state.reward
10
11 _, rews = jax.lax.scan(step, state, us)
12 return rews

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected