MagmaDNN  1.0
c++NeuralNetworkFramework
tensor_io.h
Go to the documentation of this file.
1 
9 #include <string>
10 #include <fstream>
11 #include <sstream>
12 #include "types.h"
13 #include "tensor.h"
14 
15 namespace magmadnn {
16 namespace io {
17 
18 
27  template <typename T>
28  magmadnn_error_t read_csv_to_tensor(Tensor<T>& t, const std::string& file_name, char delim=',');
29 
39  template <typename T>
40  magmadnn_error_t write_tensor_to_csv(const Tensor<T>& t, const std::string& file_name, char delim=',', bool create=true);
41 
42 
43 } // namespace io
44 } // namespace io
Definition: addop.cpp:11
magmadnn_error_t write_tensor_to_csv(const Tensor< T > &t, const std::string &file_name, char delim, bool create)
Definition: tensor_io.cpp:64
magmadnn_error_t read_csv_to_tensor(Tensor< T > &t, const std::string &file_name, char delim)
Definition: tensor_io.cpp:16