diff --git a/cpp/custom-dataset/custom-dataset.cpp b/cpp/custom-dataset/custom-dataset.cpp index a9f3462f48..d85f916062 100644 --- a/cpp/custom-dataset/custom-dataset.cpp +++ b/cpp/custom-dataset/custom-dataset.cpp @@ -21,7 +21,7 @@ struct Options { static Options options; -using Data = std::vector>; +using Data = std::vector>; class CustomDataset : public torch::data::datasets::Dataset { using Example = torch::data::Example<>; @@ -73,7 +73,7 @@ std::pair readInfo() { std::ifstream stream(options.infoFilePath); assert(stream.is_open()); - long label; + int64_t label; std::string path, type; while (true) {