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

Method loss

rtpose_wrapper/include/caffe/layer.hpp:199–201  ·  view source on GitHub ↗

* @brief Returns the scalar loss associated with a top blob at a given index. */

Source from the content-addressed store, hash-verified

197 * @brief Returns the scalar loss associated with a top blob at a given index.
198 */
199 inline Dtype loss(const int top_index) const {
200 return (loss_.size() > top_index) ? loss_[top_index] : Dtype(0);
201 }
202
203 /**
204 * @brief Sets the loss associated with a top blob at a given index.

Callers 2

ForwardMethod · 0.95
InitMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected