#include <Predictor.h>
|
const std::map< std::string,
NDArray > & | arg_map () const |
|
const std::map< std::string,
NDArray > & | aux_map () const |
|
| Block () |
|
| Block (const std::string &symbol_file, const std::string ¶m_file) |
|
const Symbol & | symbol () const |
|
Symbol | symbol (const std::string &output_node) const |
|
virtual | ~Block () |
|
Definition at line 26 of file Predictor.h.
mxnet::cpp::Block::Block |
( |
| ) |
|
mxnet::cpp::Block::Block |
( |
const std::string & |
symbol_file, |
|
|
const std::string & |
param_file |
|
) |
| |
mxnet::cpp::Block::~Block |
( |
| ) |
|
|
virtual |
const std::map<std::string, NDArray>& mxnet::cpp::Block::arg_map |
( |
| ) |
const |
|
inline |
Definition at line 34 of file Predictor.h.
References arg_map_.
std::map< std::string, NDArray > arg_map_
const std::map<std::string, NDArray>& mxnet::cpp::Block::aux_map |
( |
| ) |
const |
|
inline |
Definition at line 35 of file Predictor.h.
References aux_map_.
std::map< std::string, NDArray > aux_map_
void mxnet::cpp::Block::load_parameters |
( |
const std::string & |
param_file | ) |
|
|
private |
Definition at line 30 of file Predictor.cc.
References arg_map_, aux_map_, isotrackApplyRegressor::k, and mergeVDriftHistosByStation::name.
Referenced by Block().
31 std::map<std::string, NDArray> paramters;
32 NDArray::Load(param_file,
nullptr, ¶mters);
33 for (
const auto&
k : paramters) {
34 if (
k.first.substr(0, 4) ==
"aux:") {
35 auto name =
k.first.substr(4,
k.first.size() - 4);
38 if (
k.first.substr(0, 4) ==
"arg:") {
39 auto name =
k.first.substr(4,
k.first.size() - 4);
std::map< std::string, NDArray > aux_map_
std::map< std::string, NDArray > arg_map_
const Symbol& mxnet::cpp::Block::symbol |
( |
| ) |
const |
|
inline |
Symbol mxnet::cpp::Block::symbol |
( |
const std::string & |
output_node | ) |
const |
|
inline |
Definition at line 33 of file Predictor.h.
References sym_.
33 {
return sym_.GetInternals()[output_node]; }
std::map<std::string, NDArray> mxnet::cpp::Block::arg_map_ |
|
private |
std::map<std::string, NDArray> mxnet::cpp::Block::aux_map_ |
|
private |
Symbol mxnet::cpp::Block::sym_ |
|
private |