3 #include <torch/csrc/python_headers.h> 13 void parse(
bool& x,
const std::string& param_name);
14 void parse(
int& x,
const std::string& param_name);
15 void parse(
double& x,
const std::string& param_name);
16 void parse(std::vector<int>& x,
const std::string& param_name);
17 void parse(std::string& x,
const std::string& param_name);
20 std::runtime_error invalid_type(
const std::string& expected,
const std::string& param_name);