Welcome to mirror list, hosted at ThFree Co, Russian Federation.

THCTensorTopK.h « THC « lib - github.com/torch/cutorch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 711c0471b742f1c4502f11b2ce475b229a183aaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef TH_CUDA_TENSOR_TOPK_INC
#define TH_CUDA_TENSOR_TOPK_INC

#include "THCTensor.h"

/* Returns the set of all kth smallest (or largest) elements, depending */
/* on `dir` */
THC_API void THCudaTensor_topk(THCState* state,
                               THCudaTensor* topK,
                               THCudaLongTensor* indices,
                               THCudaTensor* input,
                               long k, int dim, int dir, int sorted);

#endif