xref: /aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/service/cpu/runtime_conv2d_mkl.h (revision b6fb3261f9314811a0f4371741dbb8839866f948)
1 /* Copyright 2018 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_CONV2D_MKL_H_
17 #define TENSORFLOW_COMPILER_XLA_SERVICE_CPU_RUNTIME_CONV2D_MKL_H_
18 
19 #include <iostream>
20 
21 extern "C" {
22 
23 extern void __xla_cpu_runtime_MKLConv2DF32(
24     const void* /* xla::ExecutableRunOptions* */ run_options_ptr, float* out,
25     float* lhs, float* rhs, int64_t input_batch, int64_t input_rows,
26     int64_t input_cols, int64_t input_channels, int64_t kernel_rows,
27     int64_t kernel_cols, int64_t kernel_channels, int64_t kernel_filters,
28     int64_t output_rows, int64_t output_cols, int64_t row_stride,
29     int64_t col_stride, int64_t padding_top, int64_t padding_bottom,
30     int64_t padding_left, int64_t padding_right, int64_t lhs_row_dilation,
31     int64_t lhs_col_dilation, int64_t rhs_row_dilation,
32     int64_t rhs_col_dilation);
33 }
34 
35 #endif  // TENSORFLOW_COMPILER_XLA_SERVICE_CPU_RUNTIME_CONV2D_MKL_H_
36