3 #ifndef CAFFE2_OPERATORS_WEIGHTEDSAMPLE_OP_H_ 4 #define CAFFE2_OPERATORS_WEIGHTEDSAMPLE_OP_H_ 6 #include "caffe2/core/context.h" 7 #include "caffe2/core/operator.h" 8 #include "caffe2/core/tensor.h" 9 #include "caffe2/utils/math.h" 13 template <
typename T,
class Context>
19 USE_OPERATOR_CONTEXT_FUNCTIONS;
21 bool RunOnDevice()
override;
24 vector<float> cum_mass_;
30 #endif // CAFFE2_OPERATORS_WEIGHTEDSAMPLE_OP_H_ Tensor is the basic class in Caffe2 that stores a contiguous memory with its shape information...
Workspace is a class that holds all the related objects created during runtime: (1) all blobs...
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...