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

Function rollout_us

mbd/utils.py:14–20  ·  view source on GitHub ↗
(step_env, state, us)

Source from the content-addressed store, hash-verified

12 return rews
13
14def rollout_us(step_env, state, us):
15 def step(state, u):
16 state = step_env(state, u)
17 return state, (state.reward, state.pipeline_state)
18
19 _, (rews, pipline_states) = jax.lax.scan(step, state, us)
20 return rews, pipline_states
21
22
23def render_us(step_env, sys, state, us):

Callers 1

run_diffusionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected