logsoftmax.h 1.21 KB
Newer Older
gongchensu's avatar
gongchensu committed
1
2
3
4
5
6
7
#ifndef __INFINIOP_LOGSOFTMAX_API_H__
#define __INFINIOP_LOGSOFTMAX_API_H__

#include "../operator_descriptor.h"

typedef struct InfiniopDescriptor *infiniopLogSoftmaxDescriptor_t;

8
__INFINI_C __export infiniStatus_t infiniopCreateLogSoftmaxDescriptor(infiniopHandle_t handle,
gongchensu's avatar
gongchensu committed
9
10
11
12
                                                                  infiniopLogSoftmaxDescriptor_t *desc_ptr,
                                                                  infiniopTensorDescriptor_t y_desc,
                                                                  infiniopTensorDescriptor_t x_desc);

13
__INFINI_C __export infiniStatus_t infiniopGetLogSoftmaxWorkspaceSize(infiniopLogSoftmaxDescriptor_t desc, size_t *size);
gongchensu's avatar
gongchensu committed
14

15
__INFINI_C __export infiniStatus_t infiniopLogSoftmax(infiniopLogSoftmaxDescriptor_t desc,
gongchensu's avatar
gongchensu committed
16
17
18
19
20
21
                                               void *workspace,
                                               size_t workspace_size,
                                               void *y,
                                               const void *x,
                                               void *stream);

22
__INFINI_C __export infiniStatus_t infiniopDestroyLogSoftmaxDescriptor(infiniopLogSoftmaxDescriptor_t desc);
gongchensu's avatar
gongchensu committed
23
24

#endif