blob: 70992196f52bd3f41ef49e1b497bd893abda4be3 [file] [log] [blame]
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/scale_op.h"
namespace caffe2 {
template <>
bool ScaleOp<CUDAContext>::RunOnDevice() {
return DispatchHelper<TensorTypes<at::Half, float>>::call(this, Input(0));
}
REGISTER_CUDA_OPERATOR(Scale, ScaleOp<CUDAContext>);
} // namespace caffe2