Caffe2 - C++ API
A deep learning, cross platform ML framework
scale_op_gpu.cc
1 #include "caffe2/core/context_gpu.h"
2 #include "caffe2/operators/scale_op.h"
3 
4 namespace caffe2 {
5 
6 template <>
7 bool ScaleOp<CUDAContext>::RunOnDevice() {
8  return DispatchHelper<TensorTypes<at::Half, float>>::call(this, Input(0));
9 }
10 
11 REGISTER_CUDA_OPERATOR(Scale, ScaleOp<CUDAContext>);
12 
13 } // namespace caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13