-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsourceCsv.cpp
34 lines (31 loc) · 1014 Bytes
/
sourceCsv.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include "sourceCsv.h"
namespace nerlnet
{
SourceCSV::SourceCSV(int type, int batch_id, int duration, std::vector<std::string> &targets, int policy, int batch_size,
double desired_bps, std::string &source_name, double supported_bps, int epochs,
int total_batches, std::string &csv_path, bool no_dur_limit)
:SourceDriver(type, batch_id, duration, targets, policy, batch_size, desired_bps,
source_name, supported_bps)
{
_epochs = epochs;
_total_batches = total_batches;
_csv_path = csv_path;
_no_dur_limit = no_dur_limit;
}
SourceCSV::~SourceCSV()
{
}
void SourceCSV::load_csv(std::string &csv_path)
{
//load the csv file.
}
// virtual int SourceCSV::get_batch() override
// {
// return _batch_size;
// }
std::shared_ptr<char> SourceCSV::get_batch()
{
return std::shared_ptr<char>();
}
}