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

Method SetShared

rtpose_wrapper/include/caffe/layer.hpp:113–117  ·  view source on GitHub ↗

@brief Set whether this layer is actually shared by other nets * If ShareInParallel() is true and using more than one GPU and the * net has TRAIN phase, then is_shared should be set true. */

Source from the content-addressed store, hash-verified

111 * net has TRAIN phase, then is_shared should be set true.
112 */
113 inline void SetShared(bool is_shared) {
114 CHECK(ShareInParallel() || !is_shared)
115 << type() << "Layer does not support sharing.";
116 is_shared_ = is_shared;
117 }
118
119 /**
120 * @brief Adjust the shapes of top blobs and internal buffers to accommodate

Callers 1

InitMethod · 0.80

Calls 1

typeFunction · 0.50

Tested by

no test coverage detected