MCPcopy Create free account
hub / github.com/MotrixLab/insactor / __call__

Method __call__

diffplanner/models/utils/gaussian_diffusion.py:1290–1293  ·  view source on GitHub ↗
(self, x, ts, **kwargs)

Source from the content-addressed store, hash-verified

1288 self.original_num_steps = original_num_steps
1289
1290 def __call__(self, x, ts, **kwargs):
1291 map_tensor = th.tensor(self.timestep_map, device=ts.device, dtype=ts.dtype)
1292 new_ts = map_tensor[ts]
1293 return self.model(x, new_ts, **kwargs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected