Commit 28192ff4 authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Fix style issue in io module (#3190)

Summary:
Fixes the issue
https://app.circleci.com/pipelines/github/pytorch/audio/15501/workflows/ebaa2c87-efc3-44a8-b86d-5a3b99870588/jobs/1164478

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

Reviewed By: nateanl

Differential Revision: D44263564

Pulled By: mthrok

fbshipit-source-id: e610be3a91888c859ebdc31081b2d1ba9d61737e
parent 9640757f
...@@ -567,8 +567,10 @@ class StreamReader: ...@@ -567,8 +567,10 @@ class StreamReader:
Returns: Returns:
InputStreamTypes: InputStreamTypes:
Information about the source stream. Information about the source stream.
If the source stream is audio type, then :class:`~torchaudio.io._stream_reader.SourceAudioStream` returned. If the source stream is audio type, then
If it is video type, then :class:`~torchaudio.io._stream_reader.SourceVideoStream` is returned. :class:`~torchaudio.io._stream_reader.SourceAudioStream` is returned.
If it is video type, then
:class:`~torchaudio.io._stream_reader.SourceVideoStream` is returned.
Otherwise :class:`~torchaudio.io._stream_reader.SourceStream` class is returned. Otherwise :class:`~torchaudio.io._stream_reader.SourceStream` class is returned.
""" """
return _parse_si(self._be.get_src_stream_info(i)) return _parse_si(self._be.get_src_stream_info(i))
...@@ -581,8 +583,10 @@ class StreamReader: ...@@ -581,8 +583,10 @@ class StreamReader:
Returns: Returns:
OutputStreamTypes OutputStreamTypes
Information about the output stream. Information about the output stream.
If the output stream is audio type, then :class:`~torchaudio.io._stream_reader.OutputAudioStream` returned. If the output stream is audio type, then
If it is video type, then :class:`~torchaudio.io._stream_reader.OutputVideoStream` is returned. :class:`~torchaudio.io._stream_reader.OutputAudioStream` is returned.
If it is video type, then
:class:`~torchaudio.io._stream_reader.OutputVideoStream` is returned.
""" """
info = self._be.get_out_stream_info(i) info = self._be.get_out_stream_info(i)
return _parse_oi(info) return _parse_oi(info)
......
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