Skip to content

Commit

Permalink
[src] Removing non-compiling paranoid asserts in nnet-computation-gra…
Browse files Browse the repository at this point in the history
…ph. (#3709)
  • Loading branch information
RuABraun authored and danpovey committed Nov 9, 2019
1 parent f21d7e7 commit c2a5538
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/nnet3/nnet-computation-graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,6 @@ void ComputationGraphBuilder::UpdateComputableInfo(int32 cindex_id) {


void ComputationGraphBuilder::IncrementUsableCount(int32 cindex_id) {
KALDI_PARANOID_ASSERT(static_cast<size_t>(cindex_id)<usable_count_.size());
CindexInfo &info = cindex_info_[cindex_id];
if (info.usable_count++ == 0 &&
info.computable != kNotComputable) {
Expand All @@ -880,7 +879,6 @@ void ComputationGraphBuilder::IncrementUsableCount(int32 cindex_id) {


void ComputationGraphBuilder::DecrementUsableCount(int32 cindex_id) {
KALDI_PARANOID_ASSERT(static_cast<size_t>(cindex_id)<usable_count_.size());
KALDI_PARANOID_ASSERT(cindex_info_[cindex_id].usable_count > 0);
if (--cindex_info_[cindex_id].usable_count == 0 &&
cindex_info_[cindex_id].computable != kNotComputable) {
Expand Down

0 comments on commit c2a5538

Please sign in to comment.