cfe3f29686673fecc5d4b05ab2ed1b9bca476950,torchaudio/__init__.py,,save,#Any#Any#Any#,77
Before Change
src = src * (1 << 31) // assuming 16-bit depth
src = src.long()
// save data to file
filename, extension = os.path.splitext(filepath)
check_input(src)
typename = get_tensor_type_name(src)
func = getattr(th_sox, "libthsox_{}_write_audio_file".format(typename))
func(_bytes(filepath, "utf-8"), src,
_bytes(extension[1:], "utf-8"), sample_rate)
After Change
src = src * (1 << 31) // assuming 16-bit depth
src = src.long()
// save data to file
extension = os.path.splitext(filepath)[1]
check_input(src)
_torch_sox.write_audio_file(filepath, src, extension[1:], sample_rate)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pytorch/audio
Commit Name: cfe3f29686673fecc5d4b05ab2ed1b9bca476950
Time: 2018-05-07
Author: ezyang@mit.edu
File Name: torchaudio/__init__.py
Class Name:
Method Name: save
Project Name: pytorch/audio
Commit Name: 8a41ecdc1ba365fb9d51e12b8ab793bc2a3f67fa
Time: 2018-04-25
Author: psag@fb.com
File Name: torchaudio/__init__.py
Class Name:
Method Name: save
Project Name: pytorch/audio
Commit Name: 18c01bef0b65cc5b11799bda7b19f4856fdfeac3
Time: 2018-05-09
Author: peter@goldsborough.me
File Name: torchaudio/__init__.py
Class Name:
Method Name: save