tensordict.nn.distributions.Delta¶
- class tensordict.nn.distributions.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)¶
Delta 分布。
- 参数:
param (torch.Tensor) – delta 分布的参数;
atol (number, 可选) – 绝对容差,用于判断张量是否与分布参数匹配;默认为 1e-6
rtol (number, 可选) – 相对容差,用于判断张量是否与分布参数匹配;默认为 1e-6
batch_shape (torch.Size, 可选) – 批量形状;
event_shape (torch.Size, 可选) – 结果的形状。