Caffe2 - C++ API
A deep learning, cross platform ML framework
zero_gradient_op.h
1 
18 #pragma once
19 
20 #include "caffe2/core/context.h"
21 #include "caffe2/core/operator.h"
22 
23 namespace caffe2 {
24 
25 template <class Context>
26 class ZeroGradientOp final : public Operator<Context> {
27  public:
28  USE_OPERATOR_CONTEXT_FUNCTIONS;
29  USE_SIMPLE_CTOR_DTOR(ZeroGradientOp);
30 
31  bool RunOnDevice() override {
32  return true;
33  }
34 };
35 
36 } // namespace caffe2
Copyright (c) 2016-present, Facebook, Inc.