快捷方式

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, 可選) – 結果的形狀。

文件

訪問全面的 PyTorch 開發者文件

檢視文件

教程

為初學者和高階開發者提供深入的教程

檢視教程

資源

查詢開發資源並讓您的問題得到解答

檢視資源