An abstract representation of a set of Indexes. More...
#include <nnet-computation-graph.h>
Public Member Functions | |
bool | operator() (const Index &index) const |
Returns true if this Index exists in the set. More... | |
IndexSet (const ComputationGraph &graph, const std::vector< ComputationGraphBuilder::CindexInfo > &info, int32 node_id, bool treat_unknown_as_computable) | |
This constructor creates the set of all Indexes x such that a Cindex (node_id, x) which is computable exists in this graph. More... | |
Private Attributes | |
const ComputationGraph & | graph_ |
const std::vector< ComputationGraphBuilder::CindexInfo > & | info_ |
int32 | node_id_ |
bool | treat_unknown_as_computable_ |
An abstract representation of a set of Indexes.
Definition at line 322 of file nnet-computation-graph.h.
IndexSet | ( | const ComputationGraph & | graph, |
const std::vector< ComputationGraphBuilder::CindexInfo > & | info, | ||
int32 | node_id, | ||
bool | treat_unknown_as_computable | ||
) |
This constructor creates the set of all Indexes x such that a Cindex (node_id, x) which is computable exists in this graph.
If treat_unknown_as_computable is true then we consider kComputable and kUnknown to be computable, else we consider just nodes that are kComputable to be computable. The `info` input is only needed for its `computable` member.
Definition at line 1493 of file nnet-computation-graph.cc.
Returns true if this Index exists in the set.
Definition at line 1500 of file nnet-computation-graph.cc.
References ComputationGraph::GetCindexId(), IndexSet::graph_, IndexSet::info_, ComputationGraphBuilder::kComputable, ComputationGraphBuilder::kUnknown, IndexSet::node_id_, and IndexSet::treat_unknown_as_computable_.
|
private |
Definition at line 337 of file nnet-computation-graph.h.
Referenced by IndexSet::operator()().
|
private |
Definition at line 338 of file nnet-computation-graph.h.
Referenced by IndexSet::operator()().
|
private |
Definition at line 339 of file nnet-computation-graph.h.
Referenced by IndexSet::operator()().
|
private |
Definition at line 340 of file nnet-computation-graph.h.
Referenced by IndexSet::operator()().