/**
 * Copyright 2022 Huawei Technologies Co., Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#ifndef MINDSPORE_NNACL_FP32_TRANSPOSE_SERVER_FP32_H_
#define MINDSPORE_NNACL_FP32_TRANSPOSE_SERVER_FP32_H_

#ifdef BFC_MEMORY
#include "nnacl/transpose_parameter.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct TransposeBlockBoundaryInfo {
  int64_t out_start_offset;
  int64_t sizes[C3NUM];
  int64_t in_offsets[C2NUM];
  int64_t start_dim[MAX_TRANSPOSE_DIM_SIZE];
} TransposeBlockBoundaryInfo;

void DoTransposeServer(const float *in_data, float *out_data, const int64_t *overflow_points, const int64_t *strides,
                       int axis_num, const TransposeBlockBoundaryInfo *boundary_info);
#ifdef __cplusplus
};
#endif

#endif  // MINDSPORE_NNACL_FP32_TRANSPOSE_SERVER_FP32_H_
#endif
