Caffe2 - C++ API
A deep learning, cross platform ML framework
scale_op_gpu.cc
1 
17 #include "caffe2/core/context_gpu.h"
18 #include "caffe2/operators/scale_op.h"
19 
20 namespace caffe2 {
21 
22 template <>
23 bool ScaleOp<CUDAContext>::RunOnDevice() {
24  return DispatchHelper<TensorTypes<float16, float>>::call(this, Input(0));
25 }
26 
27 REGISTER_CUDA_OPERATOR(Scale, ScaleOp<CUDAContext>);
28 
29 } // namespace caffe2
Copyright (c) 2016-present, Facebook, Inc.