Txeo v0.1
A Developer-Friendly TensorFlow C++ Wrapper
Loading...
Searching...
No Matches
txeo::TensorIO Class Reference

This class is deprecated. Please use class txeo::MatrixIO. More...

#include <TensorIO.h>

Collaboration diagram for txeo::TensorIO:
Collaboration graph

Public Member Functions

 TensorIO (const std::filesystem::path &path, char separator=',')
 
template<typename T >
txeo::Tensor< T > read_text_file (bool has_header=false) const
 
template<typename T >
void write_text_file (const txeo::Tensor< T > &tensor) const
 
template<typename T >
requires (std::is_floating_point_v<T>)
void write_text_file (const txeo::Tensor< T > &tensor, size_t precision) const
 

Static Public Member Functions

template<typename T >
static txeo::Tensor< T > read_textfile (const std::filesystem::path &path, char separator=',', bool has_header=false)
 
template<typename T >
static void write_textfile (const txeo::Tensor< T > &tensor, const std::filesystem::path &path, char separator=',')
 
template<typename T >
requires (std::is_floating_point_v<T>)
static void write_textfile (const txeo::Tensor< T > &tensor, size_t precision, const std::filesystem::path &path, char separator=',')
 

Detailed Description

This class is deprecated. Please use class txeo::MatrixIO.

Definition at line 18 of file TensorIO.h.

Constructor & Destructor Documentation

◆ TensorIO()

txeo::TensorIO::TensorIO ( const std::filesystem::path &  path,
char  separator = ',' 
)
inlineexplicit

Definition at line 20 of file TensorIO.h.

21 : _path(std::move(path)), _separator(separator) {};
static txeo::Tensor< T > read_textfile(const std::filesystem::path &path, char separator=',', bool has_header=false)
Definition TensorIO.h:38

Member Function Documentation

◆ read_text_file()

template<typename T >
txeo::Tensor< T > txeo::TensorIO::read_text_file ( bool  has_header = false) const

◆ read_textfile()

template<typename T >
static txeo::Tensor< T > txeo::TensorIO::read_textfile ( const std::filesystem::path &  path,
char  separator = ',',
bool  has_header = false 
)
inlinestatic

Definition at line 38 of file TensorIO.h.

39 {
42 return resp;
43 };
This class is deprecated. Please use class txeo::MatrixIO.
Definition TensorIO.h:18
txeo::Tensor< T > read_text_file(bool has_header=false) const

◆ write_text_file() [1/2]

template<typename T >
void txeo::TensorIO::write_text_file ( const txeo::Tensor< T > &  tensor) const
Here is the caller graph for this function:

◆ write_text_file() [2/2]

template<typename T >
requires (std::is_floating_point_v<T>)
void txeo::TensorIO::write_text_file ( const txeo::Tensor< T > &  tensor,
size_t  precision 
) const

◆ write_textfile() [1/2]

template<typename T >
static void txeo::TensorIO::write_textfile ( const txeo::Tensor< T > &  tensor,
const std::filesystem::path &  path,
char  separator = ',' 
)
inlinestatic

Definition at line 47 of file TensorIO.h.

48 {
51 }
void write_text_file(const txeo::Tensor< T > &tensor) const
Here is the call graph for this function:

◆ write_textfile() [2/2]

template<typename T >
requires (std::is_floating_point_v<T>)
static void txeo::TensorIO::write_textfile ( const txeo::Tensor< T > &  tensor,
size_t  precision,
const std::filesystem::path &  path,
char  separator = ',' 
)
inlinestatic

Definition at line 56 of file TensorIO.h.

Here is the call graph for this function:

The documentation for this class was generated from the following file: