@@ -10,7 +10,7 @@ namespace torchaudio::sox {
1010
1111std::tuple<int64_t , int64_t , int64_t , int64_t , std::string> get_info_file (
1212 const std::string& path,
13- const c10 ::optional<std::string>& format) {
13+ const std ::optional<std::string>& format) {
1414 SoxFormat sf (sox_open_read (
1515 path.c_str (),
1616 /* signal=*/ nullptr ,
@@ -28,8 +28,8 @@ std::tuple<int64_t, int64_t, int64_t, int64_t, std::string> get_info_file(
2828}
2929
3030std::vector<std::vector<std::string>> get_effects (
31- const c10 ::optional<int64_t >& frame_offset,
32- const c10 ::optional<int64_t >& num_frames) {
31+ const std ::optional<int64_t >& frame_offset,
32+ const std ::optional<int64_t >& num_frames) {
3333 const auto offset = frame_offset.value_or (0 );
3434 TORCH_CHECK (
3535 offset >= 0 ,
@@ -57,11 +57,11 @@ std::vector<std::vector<std::string>> get_effects(
5757
5858std::tuple<torch::Tensor, int64_t > load_audio_file (
5959 const std::string& path,
60- const c10 ::optional<int64_t >& frame_offset,
61- const c10 ::optional<int64_t >& num_frames,
62- c10 ::optional<bool > normalize,
63- c10 ::optional<bool > channels_first,
64- const c10 ::optional<std::string>& format) {
60+ const std ::optional<int64_t >& frame_offset,
61+ const std ::optional<int64_t >& num_frames,
62+ std ::optional<bool > normalize,
63+ std ::optional<bool > channels_first,
64+ const std ::optional<std::string>& format) {
6565 auto effects = get_effects (frame_offset, num_frames);
6666 return apply_effects_file (path, effects, normalize, channels_first, format);
6767}
@@ -71,10 +71,10 @@ void save_audio_file(
7171 torch::Tensor tensor,
7272 int64_t sample_rate,
7373 bool channels_first,
74- c10 ::optional<double > compression,
75- c10 ::optional<std::string> format,
76- c10 ::optional<std::string> encoding,
77- c10 ::optional<int64_t > bits_per_sample) {
74+ std ::optional<double > compression,
75+ std ::optional<std::string> format,
76+ std ::optional<std::string> encoding,
77+ std ::optional<int64_t > bits_per_sample) {
7878 validate_input_tensor (tensor);
7979
8080 const auto filetype = [&]() {
0 commit comments