#include <model_parser.h>
|
| model_parser (const char *model, size_t length) |
|
int | read (const char *field_name, size_t field_length, const char **ret) |
|
int | skip (size_t bytes) |
|
const char * | position () |
|
uint32_t | checksum () |
|
template<bool compute_checksum> |
int | read_string (const char *field_name, std::string &s) |
|
template<typename T , bool compute_checksum> |
int | read (const char *field_name, T &val) |
|
template<typename T > |
int | read (const char *field_name, T &val) |
|
template<typename T , typename W > |
int | read_weights (std::unique_ptr< W > &weights, uint64_t weight_length) |
|
template<typename W > |
int | read_weights (std::unique_ptr< W > &weights, uint32_t num_bits, uint32_t stride_shift) |
|
vw_slim::model_parser::model_parser |
( |
const char * |
model, |
|
|
size_t |
length |
|
) |
| |
uint32_t vw_slim::model_parser::checksum |
( |
| ) |
|
const char* vw_slim::model_parser::position |
( |
| ) |
|
int vw_slim::model_parser::read |
( |
const char * |
field_name, |
|
|
size_t |
field_length, |
|
|
const char ** |
ret |
|
) |
| |
template<typename T , bool compute_checksum>
int vw_slim::model_parser::read |
( |
const char * |
field_name, |
|
|
T & |
val |
|
) |
| |
|
inline |
template<typename T >
int vw_slim::model_parser::read |
( |
const char * |
field_name, |
|
|
T & |
val |
|
) |
| |
|
inline |
template<bool compute_checksum>
int vw_slim::model_parser::read_string |
( |
const char * |
field_name, |
|
|
std::string & |
s |
|
) |
| |
|
inline |
template<typename T , typename W >
int vw_slim::model_parser::read_weights |
( |
std::unique_ptr< W > & |
weights, |
|
|
uint64_t |
weight_length |
|
) |
| |
|
inline |
template<typename W >
int vw_slim::model_parser::read_weights |
( |
std::unique_ptr< W > & |
weights, |
|
|
uint32_t |
num_bits, |
|
|
uint32_t |
stride_shift |
|
) |
| |
|
inline |
int vw_slim::model_parser::skip |
( |
size_t |
bytes | ) |
|
The documentation for this class was generated from the following file:
- /__w/vowpal_wabbit/vowpal_wabbit/vowpalwabbit/slim/include/model_parser.h