MCPcopy Create free account
hub / github.com/ReinFlow/ReinFlow / sample

Method sample

model/flow/reflow.py:174–207  ·  view source on GitHub ↗

Sample trajectories using the learned velocity field. Args: cond: Dictionary containing 'state' tensor of shape (batch_size, cond_steps, obs_dim). inference_steps: Number of denoising steps. record_intermediate: Whether to return intermediate predictions.

(
        self,
        cond: dict,
        inference_steps: int,
        record_intermediate: bool = False,
        clip_intermediate_actions: bool = True,
        z:torch.Tensor = None
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

make_datasetFunction · 0.45
make_datasetFunction · 0.45
make_datasetFunction · 0.45
make_datasetFunction · 0.45
sample_timeMethod · 0.45
forwardMethod · 0.45
loss_actorMethod · 0.45
sample_first_pointMethod · 0.45
get_actionsMethod · 0.45
get_actionsMethod · 0.45
forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected