1/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16// This include can't be in the conv_ops_fused_impl.h headers. See b/62899350.
17#if GOOGLE_CUDA
18#include "tensorflow/core/protobuf/autotuning.pb.h"
19#endif // GOOGLE_CUDA
20#include "tensorflow/core/kernels/conv_ops_fused_impl.h"
21
22namespace tensorflow {
23
24// If we're using the alternative GEMM-based implementation of Conv2D for the
25// CPU implementation, don't register this EigenTensor-based version.
26#if !defined(USE_GEMM_FOR_CONV)
27TF_CALL_float(REGISTER_FUSED_CPU_CONV2D);
28#endif // !USE_GEMM_FOR_CONV
29
30#if GOOGLE_CUDA
31
32namespace functor {
33DECLARE_FUNCTOR_GPU_SPEC(float);
34} // namespace functor
35
36TF_CALL_float(REGISTER_FUSED_GPU_CONV2D);
37
38#endif // GOOGLE_CUDA
39
40} // namespace tensorflow
41