Unverified Commit 9c484027 authored by Aziz's avatar Aziz Committed by GitHub
Browse files

[Doc] Fix the return type for load functions (#1122)

parent 58ef8fb6
...@@ -104,7 +104,7 @@ def load( ...@@ -104,7 +104,7 @@ def load(
Not used. PySoundFile does not accept format hint. Not used. PySoundFile does not accept format hint.
Returns: Returns:
torch.Tensor: Tuple[torch.Tensor, int]: Resulting Tensor and sample rate.
If the input file has integer wav format and normalization is off, then it has If the input file has integer wav format and normalization is off, then it has
integer type, else ``float32`` type. If ``channels_first=True``, it has integer type, else ``float32`` type. If ``channels_first=True``, it has
``[channel, time]`` else ``[time, channel]``. ``[channel, time]`` else ``[time, channel]``.
......
...@@ -107,7 +107,7 @@ def load( ...@@ -107,7 +107,7 @@ def load(
from header or extension, from header or extension,
Returns: Returns:
torch.Tensor: Tuple[torch.Tensor, int]: Resulting Tensor and sample rate.
If the input file has integer wav format and normalization is off, then it has If the input file has integer wav format and normalization is off, then it has
integer type, else ``float32`` type. If ``channels_first=True``, it has integer type, else ``float32`` type. If ``channels_first=True``, it has
``[channel, time]`` else ``[time, channel]``. ``[channel, time]`` else ``[time, channel]``.
......
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