快捷鍵

torchaudio.models.squim_objective_model

torchaudio.models.squim_objective_model(feat_dim: int, win_len: int, d_model: int, nhead: int, hidden_dim: int, num_blocks: int, rnn_type: str, chunk_size: int, chunk_stride: Optional[int] = None) SquimObjective[原始碼]

構建一個自定義的 torchaudio.prototype.models.SquimObjective 模型。

參數:
  • feat_dim (int, 選填) – 編碼器模組後的特徵維度。

  • win_len (int) – 編碼器模組中的核心大小。

  • d_model (int) – 輸入中預期的特徵數量。

  • nhead (int) – 多頭注意力模型中的頭數。

  • hidden_dim (int) – DPRNN 的 RNN 層中的隱藏維度。

  • num_blocks (int) – DPRNN 層數。

  • rnn_type (str) – DPRNN 中 RNN 的類型。有效選項為 [“RNN”, “LSTM”, “GRU”]。

  • chunk_size (int) – DPRNN 輸入的區塊大小。

  • chunk_stride (intNone, 選填) – DPRNN 區塊輸入的步幅。

文件

存取 PyTorch 的完整開發者文件

查看文檔

教學

取得初學者和進階開發者的深入教學

查看教學

資源

尋找開發資源並獲得解答

查看資源