1 #ifndef CAFFE2_OPERATORS_COSINE_EMBEDDING_CRITERION_OP_H_ 2 #define CAFFE2_OPERATORS_COSINE_EMBEDDING_CRITERION_OP_H_ 4 #include "caffe2/core/context.h" 5 #include "caffe2/core/logging.h" 6 #include "caffe2/core/operator.h" 10 template <
class Context>
13 template <
class... Args>
16 OP_SINGLE_ARG(
float,
"margin", margin_, 0.0) {}
17 USE_OPERATOR_CONTEXT_FUNCTIONS;
19 bool RunOnDevice()
override;
25 template <
class Context>
28 template <
class... Args>
31 OP_SINGLE_ARG(
float,
"margin", margin_, 0.0) {}
32 USE_OPERATOR_CONTEXT_FUNCTIONS;
34 bool RunOnDevice()
override;
42 #endif // CAFFE2_OPERATORS_COSINE_EMBEDDING_CRITERION_OP_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...