tensordict.nn.distributions.Delta¶
- class tensordict.nn.distributions.Delta(param: Tensor, atol: float = 1e-06, rtol: float = 1e-06, batch_shape: Optional[Union[Sequence[int], Size]] = None, event_shape: Optional[Union[Sequence[int], Size]] = None)¶
Delta 分佈。
- 引數:
param (torch.Tensor) – Delta 分佈的引數;
atol (數字, 可選) – 用於判斷張量是否匹配分佈引數的絕對容差;預設為 1e-6
rtol (數字, 可選) – 用於判斷張量是否匹配分佈引數的相對容差;預設為 1e-6
batch_shape (torch.Size, 可選) – batch 形狀;
event_shape (torch.Size, 可選) – 結果的形狀。