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

Method set_loss

rtpose_wrapper/include/caffe/layer.hpp:206–211  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

204 * @brief Sets the loss associated with a top blob at a given index.
205 */
206 inline void set_loss(const int top_index, const Dtype value) {
207 if (loss_.size() <= top_index) {
208 loss_.resize(top_index + 1, Dtype(0));
209 }
210 loss_[top_index] = value;
211 }
212
213 /**
214 * @brief Returns the layer type.

Callers 1

SetLossWeightsMethod · 0.95

Calls 2

sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected