#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 31 of file Predictor.cc.
References arg_map_, aux_map_, mxnet::cpp::Predictor::context_, gen::k, mutex, mxnet::cpp::Predictor::mutex_, and dataset::name.
Referenced by aux_map(), and Block().
32 std::map<std::string, NDArray> paramters;
33 NDArray::Load(param_file,
nullptr, ¶mters);
34 for (
const auto &
k : paramters) {
35 if (
k.first.substr(0, 4) ==
"aux:") {
36 auto name =
k.first.substr(4,
k.first.size() - 4);
39 if (
k.first.substr(0, 4) ==
"arg:") {
40 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 |