// !!! This is a file automatically generated by hipify!!!

#pragma once
#include "hip/vision.h"
#ifndef _rpn_batched_h_
#define _rpn_batched_h_ 


std::vector<at::Tensor> GeneratePreNMSUprightBoxesBatched(
    const int num_images,
    const int A,
    const int K_max,
    const int max_anchors,
    at::Tensor& hw_array,
    at::Tensor& num_anchors_per_level,
    at::Tensor& sorted_indices, // topK sorted pre_nms_topn indices
    at::Tensor& sorted_scores,  // topK sorted pre_nms_topn scores [N, A, H, W]
    at::Tensor& bbox_deltas,    // [N, A*4, H, W] (full, unsorted / sliced)
    at::Tensor& anchors,        // input (full, unsorted, unsliced)
    at::Tensor& image_shapes,   // (h, w) of images
    const int pre_nms_nboxes,
    const int rpn_min_size,
    const float bbox_xform_clip_default,
    const bool correct_transform_coords){
    std::vector<at::Tensor> result = rpn::GeneratePreNMSUprightBoxesBatched_cuda(num_images,A,K_max,max_anchors,hw_array, \
        num_anchors_per_level, sorted_indices,sorted_scores,bbox_deltas,anchors,image_shapes,pre_nms_nboxes, \
        rpn_min_size, bbox_xform_clip_default,correct_transform_coords);
    return result;
}

#endif                               
