• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
2 Licensed under the Apache License, Version 2.0 (the "License");
3 you may not use this file except in compliance with the License.
4 You may obtain a copy of the License at
5 
6     http://www.apache.org/licenses/LICENSE-2.0
7 
8 Unless required by applicable law or agreed to in writing, software
9 distributed under the License is distributed on an "AS IS" BASIS,
10 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 See the License for the specific language governing permissions and
12 limitations under the License.
13 ==============================================================================*/
14 #ifndef TENSORFLOW_CORE_KERNELS_IMAGEADJUST_SATURATION_OP_H_
15 #define TENSORFLOW_CORE_KERNELS_IMAGEADJUST_SATURATION_OP_H_
16 
17 #if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
18 #define EIGEN_USE_GPU
19 
20 #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
21 
22 #include "tensorflow/core/framework/types.h"
23 
24 namespace tensorflow {
25 
26 typedef Eigen::GpuDevice GPUDevice;
27 
28 namespace functor {
29 
30 template <typename T>
31 struct AdjustSaturationGPU {
32   void operator()(GPUDevice* device, const int64 number_of_elements,
33                   const T* const input, const float* const scale,
34                   T* const output);
35 };
36 
37 }  // namespace functor
38 }  // namespace tensorflow
39 
40 #endif  // GOOGLE_CUDA || TENSORFLOW_USE_ROCM
41 #endif  // TENSORFLOW_CORE_KERNELS_IMAGEADJUST_SATURATION_OP_H_
42