src/lstm/series.cpp
bool Series::SetupNeedsBackprop(bool needs_backprop) {
  needs_to_backprop_ = needs_backprop;
  for (auto &i : stack_) {
    needs_backprop = i->SetupNeedsBackprop(needs_backprop);
  }
  return needs_backprop;
}
// Sets needs_to_backprop_ to needs_backprop and returns true if
// needs_backprop || any weights in this network so the next layer forward
// can be told to produce backprop for this layer if needed.
Sets needs_to_backprop_ to needs_backprop and returns true if
needs_backprop || any weights in this network so the next layer forward
can be told to produce backprop for this layer if needed.
Sets needs_to_backprop_ to needs_backprop and returns true if needs_backprop || any weights in this network so the next layer forward can be told to produce backprop for this layer if needed .
bool Series::SetupNeedsBackprop(bool needs_backprop) {
  needs_to_backprop_ = needs_backprop;
  for (auto &i : stack_) {
    needs_backprop = i->SetupNeedsBackprop(needs_backprop);
  }
  return needs_backprop;
}
bool Series :: SetupNeedsBackprop ( bool needs_backprop ) { needs_to_backprop_ = needs_backprop ; for ( auto & i : stack_ ) { needs_backprop = i -> SetupNeedsBackprop ( needs_backprop ) ; } return needs_backprop ; }
Sets needs_to_backprop_ to needs_backprop and returns true if
needs_backprop || any weights in this network so the next layer forward
can be told to produce backprop for this layer if needed.
Sets needs_to_backprop_ to needs_backprop and returns true if needs_backprop || any weights in this network so the next layer forward can be told to produce backprop for this layer if needed .