Struct GraphLoader::LoadResult

Nested Relationships

This struct is a nested type of Class GraphLoader.

Struct Documentation

struct mgb::serialization::GraphLoader::LoadResult

Public Types

using TensorMap = std::unordered_map<std::string, std::shared_ptr<HostTensorND>>

Public Functions

~LoadResult() noexcept

expliit dtor decl to reduce binary size

std::unique_ptr<cg::AsyncExecutable> graph_compile(const ComputingGraph::OutputSpec &outspec)

call graph->compile() but also checks for comp seq rec

graph would be destructed if comp_node_seq_record_level == 2; this method should be called in favor of graph->compile().

Public Members

std::shared_ptr<ComputingGraph> graph
TensorMap tensor_map

name to host tensor used in this graph, usually for input tensors

std::unordered_map<std::string, SymbolVar> output_var_map

name to output var nodes specified during serializing

std::unordered_map<size_t, SymbolVar> output_var_map_id

map from original id to loaded output vars

SymbolVarArray output_var_list

original output vars in the order passed to GraphDumper::dump