causal_softmax.h 1.06 KB
Newer Older
PanZezhong's avatar
PanZezhong committed
1
2
#ifndef __INFINIOP_CAUSAL_SOFTMAX_API_H__
#define __INFINIOP_CAUSAL_SOFTMAX_API_H__
PanZezhongQY's avatar
PanZezhongQY committed
3

PanZezhong's avatar
PanZezhong committed
4
#include "../operator_descriptor.h"
PanZezhongQY's avatar
PanZezhongQY committed
5
6
7

typedef InfiniopDescriptor *infiniopCausalSoftmaxDescriptor_t;

PanZezhong's avatar
PanZezhong committed
8
9
10
__C __export infiniStatus_t infiniopCreateCausalSoftmaxDescriptor(infiniopHandle_t handle,
                                                                  infiniopCausalSoftmaxDescriptor_t *desc_ptr,
                                                                  infiniopTensorDescriptor_t y_desc);
PanZezhongQY's avatar
PanZezhongQY committed
11

PanZezhong's avatar
PanZezhong committed
12
__C __export infiniStatus_t infiniopGetCausalSoftmaxWorkspaceSize(infiniopCausalSoftmaxDescriptor_t desc, size_t *size);
PanZezhongQY's avatar
PanZezhongQY committed
13

PanZezhong's avatar
PanZezhong committed
14
15
16
17
18
__C __export infiniStatus_t infiniopCausalSoftmax(infiniopCausalSoftmaxDescriptor_t desc,
                                                  void *workspace,
                                                  size_t workspace_size,
                                                  void *data,
                                                  void *stream);
PanZezhongQY's avatar
PanZezhongQY committed
19

PanZezhong's avatar
PanZezhong committed
20
__C __export infiniStatus_t infiniopDestroyCausalSoftmaxDescriptor(infiniopCausalSoftmaxDescriptor_t desc);
PanZezhongQY's avatar
PanZezhongQY committed
21
22

#endif