#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 |
void mxnet::cpp::Block::load_parameters |
( |
const std::string & |
param_file | ) |
|
|
private |
Definition at line 28 of file Predictor.cc.
References arg_map_, aux_map_, mxnet::cpp::Predictor::context_, dqmdumpme::k, mutex, mxnet::cpp::Predictor::mutex_, and Skims_PA_cff::name.
Referenced by aux_map(), and Block().
29 std::map<std::string, NDArray> paramters;
30 NDArray::Load(param_file,
nullptr, ¶mters);
31 for (
const auto&
k : paramters) {
32 if (
k.first.substr(0, 4) ==
"aux:") {
33 auto name =
k.first.substr(4,
k.first.size() - 4);
36 if (
k.first.substr(0, 4) ==
"arg:") {
37 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 |