blob: 868da5cdf5ee29054214a455cd2167beb31ef3a9 [file] [log] [blame]
XNNPACK Teamb455b122019-09-27 18:10:33 -07001// Copyright (c) Facebook, Inc. and its affiliates.
2// All rights reserved.
3//
4// Copyright 2019 Google LLC
5//
6// This source code is licensed under the BSD-style license found in the
7// LICENSE file in the root directory of this source tree.
8
9#pragma once
10
11#include <stddef.h>
12#include <stdint.h>
Marat Dukhan69722492019-11-11 19:55:50 -080013#include <stdbool.h>
XNNPACK Teamb455b122019-09-27 18:10:33 -070014
15#include <xnnpack.h>
16#include <xnnpack/common.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22XNN_INTERNAL void xnn_indirection_init_conv2d(
23 xnn_operator_t op,
24 size_t output_tile_size,
25 uint32_t log2_element_size);
26
27XNN_INTERNAL void xnn_indirection_init_dwconv2d(
28 xnn_operator_t op,
29 size_t batch_start,
30 size_t step_height,
31 size_t step_width,
32 uint32_t log2_element_size);
33
34XNN_INTERNAL void xnn_indirection_init_deconv2d(
35 xnn_operator_t op,
36 size_t output_tile_size,
37 uint32_t log2_element_size);
38
39XNN_INTERNAL void xnn_indirection_init_subconv2d(
40 xnn_operator_t op,
41 size_t output_tile_size,
42 uint32_t log2_element_size);
43
44XNN_INTERNAL void xnn_indirection_init_maxpool2d(
45 xnn_operator_t op,
XNNPACK Teamb455b122019-09-27 18:10:33 -070046 size_t step_height,
47 size_t step_width,
48 uint32_t log2_element_size);
49
Marat Dukhan69722492019-11-11 19:55:50 -080050XNN_INTERNAL void xnn_indirection_init_resize_bilinear2d_f32(
51 size_t input_pixel_stride,
52 size_t input_height,
53 size_t input_width,
54 size_t output_height,
55 size_t output_width,
56 const void* input,
57 const void** indirection_buffer,
58 float* packed_weights,
59 bool align_corners,
60 bool tensorflow_legacy);
61
XNNPACK Teamb455b122019-09-27 18:10:33 -070062XNN_INTERNAL void xnn_indirection_init_unpool2d(
63 xnn_operator_t op,
64 size_t batch_start,
65 uint32_t log2_element_size);
66
67#ifdef __cplusplus
Marat Dukhan80fc9322019-09-29 21:06:36 -070068} // extern "C"
XNNPACK Teamb455b122019-09-27 18:10:33 -070069#endif