Skip to content

Commit

Permalink
Fix output type of upsampling (#801)
Browse files Browse the repository at this point in the history
Fix output type of upsampling
Co-authored-by: Ji Chen <jimchen90@devfair0160.h2.fair>
  • Loading branch information
jimchen90 authored Jul 20, 2020
1 parent e82cc35 commit 937d52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchaudio/models/_wavernn.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List
from typing import List, Tuple

import torch
from torch import Tensor
Expand Down Expand Up @@ -172,7 +172,7 @@ def __init__(self,
up_layers.append(conv)
self.upsample_layers = nn.Sequential(*up_layers)

def forward(self, specgram: Tensor) -> Tensor:
def forward(self, specgram: Tensor) -> Tuple[Tensor, Tensor]:
r"""Pass the input through the _UpsampleNetwork layer.
Args:
Expand Down

0 comments on commit 937d52f

Please sign in to comment.