Commit 2db284c4 authored by Peter Goldsborough's avatar Peter Goldsborough Committed by Soumith Chintala
Browse files

Nits

parent c340a8d1
......@@ -38,7 +38,7 @@ int read_audio_file(const std::string& file_name, at::Tensor output) {
output.resize_({samples_read / number_of_channels, number_of_channels});
output = output.contiguous();
AT_DISPATCH_ALL_TYPES(output.type(), "write_audio_buffer", [&] {
AT_DISPATCH_ALL_TYPES(output.type(), "read_audio_buffer", [&] {
auto* data = output.data<scalar_t>();
std::copy(buffer.begin(), buffer.begin() + samples_read, data);
});
......
#include <string>
#include <tuple>
namespace at {
struct Tensor;
......
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