/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/external/cppflow/include/cppflow/datatype.h File Reference

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/external/cppflow/include/cppflow/datatype.h File Reference
Ratpac-two
datatype.h File Reference
#include <ostream>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <typeinfo>

Go to the source code of this file.

Typedefs

using cppflow::datatype = TF_DataType
 

Functions

std::string cppflow::to_string (datatype dt)
 
template<typename T >
TF_DataType cppflow::deduce_tf_type ()
 
std::ostream & cppflow::operator<< (std::ostream &os, datatype dt)
 

Detailed Description

Author
Jiannan Liu
Sergio Izquierdo
Date
@showdate "%B %d, %Y" 2020-07-12

Function Documentation

◆ deduce_tf_type()

template<typename T >
TF_DataType cppflow::deduce_tf_type ( )
Template Parameters
T
Returns
The TensorFlow type of T

◆ operator<<()

std::ostream& cppflow::operator<< ( std::ostream &  os,
datatype  dt 
)
inline
Returns
The stream os after inserting the string representation of dt

◆ to_string()

std::string cppflow::to_string ( datatype  dt)
inline
Returns
A string representing dt