Classes | |
class | Model |
class | HTTPModel |
Functions | |
bool | check_input_sizes (const std::vector< std::vector< double >> &inputs, const json &config_json, const Model &model, httplib::Response &res) |
bool | check_sensitivity_size (const std::vector< double > &sens, int outWrt, const json &config_json, const Model &model, httplib::Response &res) |
bool | check_vector_size (const std::vector< double > &vec, int inWrt, const json &config_json, const Model &model, httplib::Response &res) |
bool | check_output_sizes (const std::vector< std::vector< double >> &outputs, const json &config_json, const Model &model, httplib::Response &res) |
bool | check_input_wrt (int inWrt, const json &config_json, const Model &model, httplib::Response &res) |
bool | check_output_wrt (int outWrt, const json &config_json, const Model &model, httplib::Response &res) |
void | write_unsupported_feature_response (httplib::Response &res, std::string feature) |
Model & | get_model_from_name (std::vector< Model * > &models, std::string name) |
bool | check_model_exists (std::vector< Model * > &models, std::string name, httplib::Response &res) |
void | serveModels (std::vector< Model * > models, std::string host, int port) |
bool umbridge::check_input_sizes | ( | const std::vector< std::vector< double >> & | inputs, |
const json & | config_json, | ||
const Model & | model, | ||
httplib::Response & | res | ||
) |
Definition at line 293 of file umbridge.h.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::dump(), umbridge::Model::GetInputSizes(), umbridge::Model::GetOutputSizes(), and nlohmann::to_string().
Referenced by serveModels().
bool umbridge::check_input_wrt | ( | int | inWrt, |
const json & | config_json, | ||
const Model & | model, | ||
httplib::Response & | res | ||
) |
Definition at line 365 of file umbridge.h.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::dump(), umbridge::Model::GetInputSizes(), and nlohmann::to_string().
Referenced by serveModels().
bool umbridge::check_model_exists | ( | std::vector< Model * > & | models, |
std::string | name, | ||
httplib::Response & | res | ||
) |
Definition at line 410 of file umbridge.h.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::dump(), nlohmann::detail::dtoa_impl::e, and get_model_from_name().
Referenced by serveModels().
bool umbridge::check_output_sizes | ( | const std::vector< std::vector< double >> & | outputs, |
const json & | config_json, | ||
const Model & | model, | ||
httplib::Response & | res | ||
) |
Definition at line 342 of file umbridge.h.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::dump(), umbridge::Model::GetOutputSizes(), and nlohmann::to_string().
Referenced by serveModels().
bool umbridge::check_output_wrt | ( | int | outWrt, |
const json & | config_json, | ||
const Model & | model, | ||
httplib::Response & | res | ||
) |
Definition at line 378 of file umbridge.h.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::dump(), umbridge::Model::GetOutputSizes(), and nlohmann::to_string().
Referenced by serveModels().
bool umbridge::check_sensitivity_size | ( | const std::vector< double > & | sens, |
int | outWrt, | ||
const json & | config_json, | ||
const Model & | model, | ||
httplib::Response & | res | ||
) |
Definition at line 316 of file umbridge.h.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::dump(), umbridge::Model::GetOutputSizes(), and nlohmann::to_string().
Referenced by serveModels().
bool umbridge::check_vector_size | ( | const std::vector< double > & | vec, |
int | inWrt, | ||
const json & | config_json, | ||
const Model & | model, | ||
httplib::Response & | res | ||
) |
Definition at line 329 of file umbridge.h.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::dump(), umbridge::Model::GetInputSizes(), and nlohmann::to_string().
Referenced by serveModels().
Definition at line 400 of file umbridge.h.
Referenced by check_model_exists(), and serveModels().
void umbridge::serveModels | ( | std::vector< Model * > | models, |
std::string | host, | ||
int | port | ||
) |
Definition at line 425 of file umbridge.h.
References umbridge::Model::ApplyHessian(), umbridge::Model::ApplyJacobian(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::at(), check_input_sizes(), check_input_wrt(), check_model_exists(), check_output_sizes(), check_output_wrt(), check_sensitivity_size(), check_vector_size(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::dump(), umbridge::Model::Evaluate(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::get(), get_model_from_name(), umbridge::Model::GetInputSizes(), umbridge::Model::GetOutputSizes(), umbridge::Model::Gradient(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::parse(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::push_back(), umbridge::Model::SupportsApplyHessian(), umbridge::Model::SupportsApplyJacobian(), umbridge::Model::SupportsEvaluate(), umbridge::Model::SupportsGradient(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::value(), and write_unsupported_feature_response().
Referenced by muq::Modeling::serveModPiece().
void umbridge::write_unsupported_feature_response | ( | httplib::Response & | res, |
std::string | feature | ||
) |
Definition at line 391 of file umbridge.h.
Referenced by serveModels().