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

Function render_us

mbd/scripts/vis_diffusion.py:115–122  ·  view source on GitHub ↗
(state, us)

Source from the content-addressed store, hash-verified

113
114
115def render_us(state, us):
116 rollout = []
117 rew_sum = 0.0
118 for i in range(Hsample):
119 rollout.append(state.pipeline_state)
120 state = step_env_jit(state, us[i])
121 rew_sum += state.reward
122 return rollout
123
124
125rng = jax.random.PRNGKey(0)

Callers 2

vis_diffusion.pyFile · 0.70
run_diffusionFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected