3 #include "caffe2/core/operator.h" 4 #include "caffe2/utils/math.h" 8 template <
typename T,
class Context>
11 USE_OPERATOR_CONTEXT_FUNCTIONS;
12 template <
class... Args>
16 this->
template GetSingleArgument<bool>(
"use_max_norm",
true)),
17 norm_(this->
template GetSingleArgument<float>(
"norm", 1.0)) {
18 CAFFE_ENFORCE_GE(norm_, 0,
"norm should be bigger than 0");
21 bool RunOnDevice()
override;
23 template <
typename SIndex>
29 INPUT_TAGS(PARAM, INDICES, GRAD);
30 OUTPUT_TAGS(OUTPUT_PARAM);
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...