causal_softmax.h 1.06 KB
Newer Older
PanZezhongQY's avatar
PanZezhongQY committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __INFINIOP_CAUSAL_SOFTMAX_H__
#define __INFINIOP_CAUSAL_SOFTMAX_H__

#include "../operator.h"

typedef InfiniopDescriptor *infiniopCausalSoftmaxDescriptor_t;

__C __export infiniopStatus_t infiniopCreateCausalSoftmaxDescriptor(infiniopHandle_t handle,
                                                                    infiniopCausalSoftmaxDescriptor_t *desc_ptr,
                                                                    infiniopTensorDescriptor_t y_desc);

__C __export infiniopStatus_t infiniopGetCausalSoftmaxWorkspaceSize(infiniopCausalSoftmaxDescriptor_t desc, size_t *size);

__C __export infiniopStatus_t infiniopCausalSoftmax(infiniopCausalSoftmaxDescriptor_t desc,
                                                    void *workspace,
                                                    size_t workspace_size,
                                                    void *data,
                                                    void *stream);

__C __export infiniopStatus_t infiniopDestroyCausalSoftmaxDescriptor(infiniopCausalSoftmaxDescriptor_t desc);


#endif