MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / ForwardFromTo

Method ForwardFromTo

rtpose_wrapper/src/caffe/net.cpp:544–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542
543template <typename Dtype>
544Dtype Net<Dtype>::ForwardFromTo(int start, int end) {
545 CHECK_GE(start, 0);
546 CHECK_LT(end, layers_.size());
547 Dtype loss = 0;
548 for (int i = start; i <= end; ++i) {
549 //LOG(ERROR) << "Forwarding " << layer_names_[i];
550 Dtype layer_loss = layers_[i]->Forward(bottom_vecs_[i], top_vecs_[i]);
551 loss += layer_loss;
552 if (debug_info_) { ForwardDebugInfo(i); }
553 }
554 return loss;
555}
556
557template <typename Dtype>
558Dtype Net<Dtype>::ForwardFrom(int start) {

Callers 1

TYPED_TESTFunction · 0.80

Calls 2

ForwardMethod · 0.80
sizeMethod · 0.45

Tested by 1

TYPED_TESTFunction · 0.64