#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.
◆ Block() [1/2]
mxnet::cpp::Block::Block |
( |
| ) |
|
◆ Block() [2/2]
mxnet::cpp::Block::Block |
( |
const std::string & |
symbol_file, |
|
|
const std::string & |
param_file |
|
) |
| |
◆ ~Block()
mxnet::cpp::Block::~Block |
( |
| ) |
|
|
virtual |
◆ arg_map()
const std::map<std::string, NDArray>& mxnet::cpp::Block::arg_map |
( |
| ) |
const |
|
inline |
◆ aux_map()
const std::map<std::string, NDArray>& mxnet::cpp::Block::aux_map |
( |
| ) |
const |
|
inline |
◆ load_parameters()
void mxnet::cpp::Block::load_parameters |
( |
const std::string & |
param_file | ) |
|
|
private |
Definition at line 30 of file Predictor.cc.
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);
References arg_map_, aux_map_, dqmdumpme::k, and Skims_PA_cff::name.
Referenced by Block().
◆ symbol() [1/2]
const Symbol& mxnet::cpp::Block::symbol |
( |
| ) |
const |
|
inline |
◆ symbol() [2/2]
Symbol mxnet::cpp::Block::symbol |
( |
const std::string & |
output_node | ) |
const |
|
inline |
Definition at line 33 of file Predictor.h.
33 {
return sym_.GetInternals()[output_node]; }
References sym_.
◆ arg_map_
std::map<std::string, NDArray> mxnet::cpp::Block::arg_map_ |
|
private |
◆ aux_map_
std::map<std::string, NDArray> mxnet::cpp::Block::aux_map_ |
|
private |
◆ sym_
Symbol mxnet::cpp::Block::sym_ |
|
private |