1 /* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 2 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the License is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14 ==============================================================================*/ 15 16 #ifndef TENSORFLOW_COMPILER_XLA_SERVICE_CPU_RUNTIME_SINGLE_THREADED_CONV2D_H_ 17 #define TENSORFLOW_COMPILER_XLA_SERVICE_CPU_RUNTIME_SINGLE_THREADED_CONV2D_H_ 18 19 #include "third_party/eigen3/Eigen/Core" 20 #include "tensorflow/core/platform/types.h" 21 22 extern "C" { 23 24 extern void __xla_cpu_runtime_EigenSingleThreadedConvF16( 25 const void* /* xla::ExecutableRunOptions* */ run_options_ptr, 26 Eigen::half* out, Eigen::half* lhs, Eigen::half* rhs, 27 tensorflow::int64 input_batch, tensorflow::int64 input_rows, 28 tensorflow::int64 input_cols, tensorflow::int64 input_channels, 29 tensorflow::int64 kernel_rows, tensorflow::int64 kernel_cols, 30 tensorflow::int64 kernel_channels, tensorflow::int64 kernel_filters, 31 tensorflow::int64 output_rows, tensorflow::int64 output_cols, 32 tensorflow::int64 row_stride, tensorflow::int64 col_stride, 33 tensorflow::int64 padding_top, tensorflow::int64 padding_bottom, 34 tensorflow::int64 padding_left, tensorflow::int64 padding_right, 35 tensorflow::int64 lhs_row_dilation, tensorflow::int64 lhs_col_dilation, 36 tensorflow::int64 rhs_row_dilation, tensorflow::int64 rhs_col_dilation); 37 38 extern void __xla_cpu_runtime_EigenSingleThreadedConvF32( 39 const void* /* xla::ExecutableRunOptions* */ run_options_ptr, float* out, 40 float* lhs, float* rhs, tensorflow::int64 input_batch, 41 tensorflow::int64 input_rows, tensorflow::int64 input_cols, 42 tensorflow::int64 input_channels, tensorflow::int64 kernel_rows, 43 tensorflow::int64 kernel_cols, tensorflow::int64 kernel_channels, 44 tensorflow::int64 kernel_filters, tensorflow::int64 output_rows, 45 tensorflow::int64 output_cols, tensorflow::int64 row_stride, 46 tensorflow::int64 col_stride, tensorflow::int64 padding_top, 47 tensorflow::int64 padding_bottom, tensorflow::int64 padding_left, 48 tensorflow::int64 padding_right, tensorflow::int64 lhs_row_dilation, 49 tensorflow::int64 lhs_col_dilation, tensorflow::int64 rhs_row_dilation, 50 tensorflow::int64 rhs_col_dilation); 51 52 } // extern "C" 53 54 #endif // TENSORFLOW_COMPILER_XLA_SERVICE_CPU_RUNTIME_SINGLE_THREADED_CONV2D_H_ 55