Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions | Protected Member Functions
torch::TupleParser Struct Reference

Public Member Functions

 TupleParser (PyObject *args, int num_args=-1)
 
void parse (bool &x, const std::string &param_name)
 
void parse (int &x, const std::string &param_name)
 
void parse (double &x, const std::string &param_name)
 
void parse (std::vector< int > &x, const std::string &param_name)
 
void parse (std::string &x, const std::string &param_name)
 

Protected Member Functions

std::runtime_error invalid_type (const std::string &expected, const std::string &param_name)
 
PyObject * next_arg ()
 

Detailed Description

Definition at line 10 of file tuple_parser.h.


The documentation for this struct was generated from the following files: