Skip to content

Commit c2a5538

Browse files
RuABraundanpovey
authored andcommitted
[src] Removing non-compiling paranoid asserts in nnet-computation-graph. (#3709)
1 parent f21d7e7 commit c2a5538

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/nnet3/nnet-computation-graph.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,6 @@ void ComputationGraphBuilder::UpdateComputableInfo(int32 cindex_id) {
857857

858858

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

881880

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

0 commit comments

Comments
 (0)