MCPcopy Create free account
hub / github.com/LBANN/lbann / back_prop

Method back_prop

src/layers/layer.cpp:755–773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753}
754
755void Layer::back_prop()
756{
757 // This bit is preprocessed out since the LBANN_CALIPER macro
758 // won't help us out here.
759#ifdef LBANN_HAS_CALIPER
760 auto const scope_name = this->get_type() + "_layer:back_prop";
761 LBANN_CALIPER_MARK_SCOPE(scope_name.c_str());
762#endif
763
764 allocate_new_gradients_();
765 back_prop_impl_();
766 propagate_error_signals_to_parents_();
767 clear_prev_error_signals_();
768
769 // Release the now-unnecessary full weight views
770 for (size_t i = 0; i < this->num_weights(); ++i) {
771 this->get_weights(i).release_full_weights();
772 }
773}
774
775void Layer::write_proto(lbann_data::Layer& proto) const
776{

Callers 2

do_check_gradientsMethod · 0.80
backward_propMethod · 0.80

Calls 4

num_weightsMethod · 0.95
release_full_weightsMethod · 0.80
get_typeMethod · 0.45
get_weightsMethod · 0.45

Tested by

no test coverage detected