Operator#
- class torchsim.Operator(emit, duration_s=0.0)[source]#
Bases:
objectOne module of a sequence: what it plays, and how long it lasts.
- Parameters:
emit (callable) – Given the absolute time the module starts, in seconds, the events it plays.
duration_s (float or torch.Tensor, optional) – What the module holds the timeline for. Zero for a module that plays instantaneously and leaves the next one to start where it did.