Delta¶
- class torchrl.modules.Delta(param: Tensor, atol: float = 1e-06, rtol: float = 1e-06, batch_shape: Optional[Union[Size, Sequence[int]]] = None, event_shape: Optional[Union[Size, Sequence[int]]] = None)[source]¶
Delta 分布。
- 参数::
param (torch.Tensor) – Delta 分布的参数;
atol (number, optional) – 考虑张量与分布参数匹配的绝对容差;默认值为 1e-6
rtol (number, optional) – 考虑张量与分布参数匹配的相对容差;默认值为 1e-6
batch_shape (torch.Size, optional) – 批次形状;
event_shape (torch.Size, optional) – 结果的形状。