"vscode:/vscode.git/clone" did not exist on "5804cf1723ef90093b0076e0069015fe7deb2a06"
Commit 860f053b authored by hwangjeff's avatar hwangjeff Committed by Facebook GitHub Bot
Browse files

Fix output shape description in RNN-T docstrings (#2179)

Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/2179

Reviewed By: carolineechen, mthrok

Differential Revision: D33797937

Pulled By: hwangjeff

fbshipit-source-id: a14030d513cb1324d4742992eac0e88f1b358b65
parent cb8160d3
......@@ -410,7 +410,7 @@ class _Joiner(torch.nn.Module):
Returns:
(torch.Tensor, torch.Tensor, torch.Tensor):
torch.Tensor
joint network output, with shape `(B, T, U, D)`.
joint network output, with shape `(B, T, U, output_dim)`.
torch.Tensor
output source lengths, with shape `(B,)` and i-th element representing
number of valid elements along dim 1 for i-th batch element in joint network output.
......@@ -476,7 +476,7 @@ class RNNT(torch.nn.Module):
(torch.Tensor, torch.Tensor, torch.Tensor, List[List[torch.Tensor]]):
torch.Tensor
joint network output, with shape
`(B, max output source length, max output target length, number of target symbols)`.
`(B, max output source length, max output target length, output_dim (number of target symbols))`.
torch.Tensor
output source lengths, with shape `(B,)` and i-th element representing
number of valid elements along dim 1 for i-th batch element in joint network output.
......@@ -639,7 +639,7 @@ class RNNT(torch.nn.Module):
Returns:
(torch.Tensor, torch.Tensor, torch.Tensor):
torch.Tensor
joint network output, with shape `(B, T, U, D)`.
joint network output, with shape `(B, T, U, output_dim)`.
torch.Tensor
output source lengths, with shape `(B,)` and i-th element representing
number of valid elements along dim 1 for i-th batch element in joint network output.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment