This commit is contained in:
Eric 2021-03-16 19:28:29 -04:00
parent 4e5b174f8f
commit 3d38a50f56
1 changed files with 6 additions and 6 deletions

View File

@ -994,7 +994,7 @@ MindDataDataset::MindDataDataset(const std::vector<char> &dataset_file,
nlohmann::json sample = nullptr;
if (padded_sample) {
sample = *padded_sample;
};
}
auto ds = std::make_shared<MindDataNode>(CharToString(dataset_file), VectorCharToString(columns_list), sampler_obj,
sample, num_padded);
ir_node_ = std::static_pointer_cast<DatasetNode>(ds);
@ -1006,7 +1006,7 @@ MindDataDataset::MindDataDataset(const std::vector<char> &dataset_file,
nlohmann::json sample = nullptr;
if (padded_sample) {
sample = *padded_sample;
};
}
auto ds = std::make_shared<MindDataNode>(CharToString(dataset_file), VectorCharToString(columns_list), sampler_obj,
sample, num_padded);
ir_node_ = std::static_pointer_cast<DatasetNode>(ds);
@ -1019,7 +1019,7 @@ MindDataDataset::MindDataDataset(const std::vector<char> &dataset_file,
nlohmann::json sample = nullptr;
if (padded_sample) {
sample = *padded_sample;
};
}
auto ds = std::make_shared<MindDataNode>(CharToString(dataset_file), VectorCharToString(columns_list), sampler_obj,
sample, num_padded);
@ -1033,7 +1033,7 @@ MindDataDataset::MindDataDataset(const std::vector<std::vector<char>> &dataset_f
nlohmann::json sample = nullptr;
if (padded_sample) {
sample = *padded_sample;
};
}
auto ds = std::make_shared<MindDataNode>(VectorCharToString(dataset_files), VectorCharToString(columns_list),
sampler_obj, sample, num_padded);
@ -1046,7 +1046,7 @@ MindDataDataset::MindDataDataset(const std::vector<std::vector<char>> &dataset_f
nlohmann::json sample = nullptr;
if (padded_sample) {
sample = *padded_sample;
};
}
auto ds = std::make_shared<MindDataNode>(VectorCharToString(dataset_files), VectorCharToString(columns_list),
sampler_obj, sample, num_padded);
@ -1060,7 +1060,7 @@ MindDataDataset::MindDataDataset(const std::vector<std::vector<char>> &dataset_f
nlohmann::json sample = nullptr;
if (padded_sample) {
sample = *padded_sample;
};
}
auto ds = std::make_shared<MindDataNode>(VectorCharToString(dataset_files), VectorCharToString(columns_list),
sampler_obj, sample, num_padded);
ir_node_ = std::static_pointer_cast<DatasetNode>(ds);