180ede8ec692cb2b8b30e1fccb0e8ee77488913b,torchaudio/backend/sox_io_backend.py,,info,#Any#,10
Before Change
@_mod_utils.requires_module("torchaudio._torchaudio")
def info(filepath: str) -> torch.classes.torchaudio.SignalInfo:
Get signal information of an audio file.
return torch.ops.torchaudio.sox_io_get_info(filepath)
@_mod_utils.requires_module("torchaudio._torchaudio")
def load(
After Change
def info(filepath: str) -> AudioMetaData:
Get signal information of an audio file.
sinfo = torch.ops.torchaudio.sox_io_get_info(filepath)
return AudioMetaData(sinfo.get_sample_rate(), sinfo.get_num_frames(), sinfo.get_num_channels())
@_mod_utils.requires_module("torchaudio._torchaudio")
def load(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: pytorch/audio
Commit Name: 180ede8ec692cb2b8b30e1fccb0e8ee77488913b
Time: 2020-07-08
Author: 855818+mthrok@users.noreply.github.com
File Name: torchaudio/backend/sox_io_backend.py
Class Name:
Method Name: info
Project Name: pytorch/audio
Commit Name: 8b93bd68667187cfa4cffffe75dcb5fc49438007
Time: 2021-02-03
Author: prabhatroy@fb.com
File Name: torchaudio/backend/sox_io_backend.py
Class Name:
Method Name: info
Project Name: pytorch/audio
Commit Name: b152ee61e4b2ff443e0fd189a5a027735640048b
Time: 2021-01-29
Author: 855818+mthrok@users.noreply.github.com
File Name: torchaudio/backend/sox_io_backend.py
Class Name:
Method Name: _info