ONE - On-device Neural Engine
|
This file provides string <-> number cast helpers. More...
Typedefs | |
using | Data = std::vector< uint8_t > |
template<typename T > | |
using | Dims = std::vector< T > |
Functions | |
template<typename T > | |
std::vector< T > | as_vector (const ::google::protobuf::RepeatedPtrField< T > &field) |
template<typename T > | |
Dataset< T > | as_dataset (const ::google::protobuf::RepeatedPtrField< T > &field) |
template<typename SHAPETYPE > | |
Dims< int32_t > | as_dims (const SHAPETYPE &shape) |
int32_t | element_count (const Dims< int32_t > &dims) |
template<typename Number > | |
Number | to_number (const std::string &s) |
Return a numeric value that corresponds to a given string. | |
template<typename InputIt > | |
RangedArguments< InputIt > | ranged_arguments (InputIt beg, InputIt end) |
template<> | |
float | to_number (const std::string &s) |
template<> | |
int | to_number (const std::string &s) |
template<> | |
int16_t | to_number (const std::string &s) |
template<> | |
int64_t | to_number (const std::string &s) |
template<> | |
uint8_t | to_number (const std::string &s) |
template<> | |
int8_t | to_number (const std::string &s) |
template<> | |
bool | to_number (const std::string &s) |
template<> | |
std::string | to_number (const std::string &s) |
This file provides string <-> number cast helpers.
using souschef::Data = typedef std::vector<uint8_t> |
Definition at line 29 of file DataChef.h.
using souschef::Dims = typedef std::vector<T> |
Dataset< T > souschef::as_dataset | ( | const ::google::protobuf::RepeatedPtrField< T > & | field | ) |
Dims< int32_t > souschef::as_dims | ( | const SHAPETYPE & | shape | ) |
std::vector< T > souschef::as_vector | ( | const ::google::protobuf::RepeatedPtrField< T > & | field | ) |
int32_t souschef::element_count | ( | const Dims< int32_t > & | dims | ) |
RangedArguments< InputIt > souschef::ranged_arguments | ( | InputIt | beg, |
InputIt | end | ||
) |
Definition at line 46 of file RangedArguments.h.
Number souschef::to_number | ( | const std::string & | s | ) |
Return a numeric value that corresponds to a given string.
float souschef::to_number | ( | const std::string & | s | ) |
Definition at line 27 of file LexicalCast.cpp.
int souschef::to_number | ( | const std::string & | s | ) |
Definition at line 28 of file LexicalCast.cpp.
int16_t souschef::to_number | ( | const std::string & | s | ) |
Definition at line 29 of file LexicalCast.cpp.
int64_t souschef::to_number | ( | const std::string & | s | ) |
Definition at line 41 of file LexicalCast.cpp.
uint8_t souschef::to_number | ( | const std::string & | s | ) |
Definition at line 42 of file LexicalCast.cpp.
int8_t souschef::to_number | ( | const std::string & | s | ) |
Definition at line 49 of file LexicalCast.cpp.
bool souschef::to_number | ( | const std::string & | s | ) |
Definition at line 56 of file LexicalCast.cpp.
std::string souschef::to_number | ( | const std::string & | s | ) |
Definition at line 64 of file LexicalCast.cpp.