1 #include "caffe2/operators/enforce_finite_op.h" 7 bool EnforceFiniteOp<CPUContext>::DoRunWithType() {
8 EnforceOnCPU<T>(Input(0));
12 REGISTER_CPU_OPERATOR(EnforceFinite, EnforceFiniteOp<CPUContext>);
14 OPERATOR_SCHEMA(EnforceFinite)
18 Raise if there is NaN or Inf values in the input tensor. 20 .Input(0, "input",
"Input tensor");
22 SHOULD_NOT_DO_GRADIENT(EnforceFinite);
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...