ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Config.cc File Reference
#include "Config.h"
#include <fstream>
#include <json/json.h>
#include <sstream>

Go to the source code of this file.

Namespaces

namespace  ggma
 

Functions

template<typename T >
void ggma::load_config_field (const Json::Value &root, const std::string &field_name, T &target, bool is_optional=false)
 
template<>
void ggma::load_config_field< bool > (const Json::Value &root, const std::string &field_name, bool &target, bool is_optional)
 
template<>
void ggma::load_config_field< std::optional< int > > (const Json::Value &root, const std::string &field_name, std::optional< int > &target, bool is_optional)
 
bool ggma::validate_model_config (const ModelConfig &config)
 
std::string ggma::to_string (const ModelConfig &config)