We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdef4d4 commit fb89cbbCopy full SHA for fb89cbb
cpp/custom-dataset/custom-dataset.cpp
@@ -21,7 +21,7 @@ struct Options {
21
22
static Options options;
23
24
-using Data = std::vector<std::pair<std::string, long>>;
+using Data = std::vector<std::pair<std::string, int64_t>>;
25
26
class CustomDataset : public torch::data::datasets::Dataset<CustomDataset> {
27
using Example = torch::data::Example<>;
@@ -73,7 +73,7 @@ std::pair<Data, Data> readInfo() {
73
std::ifstream stream(options.infoFilePath);
74
assert(stream.is_open());
75
76
- long label;
+ int64_t label;
77
std::string path, type;
78
79
while (true) {
0 commit comments