Skip to content

Commit

Permalink
Fix platform type inconsistency custom-dataset.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nccrrv authored Oct 16, 2024
1 parent cdef4d4 commit fb89cbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/custom-dataset/custom-dataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct Options {

static Options options;

using Data = std::vector<std::pair<std::string, long>>;
using Data = std::vector<std::pair<std::string, int64_t>>;

class CustomDataset : public torch::data::datasets::Dataset<CustomDataset> {
using Example = torch::data::Example<>;
Expand Down Expand Up @@ -73,7 +73,7 @@ std::pair<Data, Data> readInfo() {
std::ifstream stream(options.infoFilePath);
assert(stream.is_open());

long label;
int64_t label;
std::string path, type;

while (true) {
Expand Down

0 comments on commit fb89cbb

Please sign in to comment.