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, optional) – 判断张量是否匹配分布参数的绝对容差;默认为 1e-6
rtol (number, optional) – 判断张量是否匹配分布参数的相对容差;默认为 1e-6
batch_shape (torch.Size, optional) – 批处理形状;
event_shape (torch.Size, optional) – 结果的形状。