nnlib
GPU-accelerated, C/C++ neural network library.
read.h
Go to the documentation of this file.
1 
8 #ifndef NNLIB_READ_H
9 #define NNLIB_READ_H
10 
11 #include "tensor.h"
12 #include <string>
13 #include <vector>
14 
21 bool fileExists(const std::string& filepath);
22 
33 std::vector<std::string> readFile(const std::string& filepath);
34 
46 sTensor readCSV(const std::string& filepath, const std::string& delim = ",", int numThreads = 1);
47 
48 
49 #endif //NNLIB_READ_H
sTensor readCSV(const std::string &filepath, const std::string &delim=",", int numThreads=1)
Read a csv file from a path.
Definition: read.cpp:107
std::vector< std::string > readFile(const std::string &filepath)
Read file from a filepath.
Definition: read.cpp:43
bool fileExists(const std::string &filepath)
Check if a file exists with the provided filepath.
Definition: read.cpp:36
Header file declaring the Tensor class to represent multidimensional arrays.