#include <nnet-computation-graph.h>
Public Member Functions | |
bool | operator() (const Cindex &cindex) const |
Parenthesis operator; returns true if this cindex exists in the set. More... | |
CindexSet (const ComputationGraph &graph) | |
with this constructor, represents the set of all Cindexes that exist in the graph. More... | |
CindexSet (const ComputationGraph &graph, const std::vector< ComputationGraphBuilder::CindexInfo > &info, bool treat_unknown_as_computable) | |
with this constructor, represents the set of all Cindexes that exist in the graph and which are computable. More... | |
Private Attributes | |
const ComputationGraph & | graph_ |
const std::vector< ComputationGraphBuilder::CindexInfo > * | info_ |
bool | treat_unknown_as_computable_ |
Definition at line 297 of file nnet-computation-graph.h.
CindexSet | ( | const ComputationGraph & | graph | ) |
with this constructor, represents the set of all Cindexes that exist in the graph.
Definition at line 1466 of file nnet-computation-graph.cc.
CindexSet | ( | const ComputationGraph & | graph, |
const std::vector< ComputationGraphBuilder::CindexInfo > & | info, | ||
bool | treat_unknown_as_computable | ||
) |
with this constructor, represents the set of all Cindexes that exist in the graph and which are computable.
If treat_unknown_as_computable is true then we consider kComputable, kUnknown and kWillNotCompute to be computable; else we consider just nodes that are kComputable to be computable.
Definition at line 1469 of file nnet-computation-graph.cc.
Parenthesis operator; returns true if this cindex exists in the set.
Definition at line 1476 of file nnet-computation-graph.cc.
References ComputationGraph::GetCindexId(), CindexSet::graph_, CindexSet::info_, ComputationGraphBuilder::kComputable, ComputationGraphBuilder::kUnknown, and CindexSet::treat_unknown_as_computable_.
|
private |
Definition at line 315 of file nnet-computation-graph.h.
Referenced by CindexSet::operator()().
|
private |
Definition at line 316 of file nnet-computation-graph.h.
Referenced by CindexSet::operator()().
|
private |
Definition at line 317 of file nnet-computation-graph.h.
Referenced by CindexSet::operator()().