|
1 | | -#ifndef __INFINIOP_SOFTPLUS_API_H__ |
2 | | -#define __INFINIOP_SOFTPLUS_API_H__ |
3 | | - |
4 | | -#include "../operator_descriptor.h" |
| 1 | +#ifndef __INFINIOP_OPS_SOFTPLUS_API_H__ |
| 2 | +#define __INFINIOP_OPS_SOFTPLUS_API_H__ |
| 3 | +#include "../tensor_descriptor.h" |
5 | 4 |
|
6 | 5 | typedef struct InfiniopDescriptor *infiniopSoftplusDescriptor_t; |
| 6 | +__INFINI_C __export infiniStatus_t infiniopCreateSoftplusDescriptor( |
| 7 | + infiniopHandle_t handle, |
| 8 | + infiniopSoftplusDescriptor_t *desc_ptr, |
| 9 | + infiniopTensorDescriptor_t y_desc, |
| 10 | + infiniopTensorDescriptor_t x_desc, |
| 11 | + float beta, |
| 12 | + float threshold); |
7 | 13 |
|
8 | | -__INFINI_C __export infiniStatus_t infiniopCreateSoftplusDescriptor(infiniopHandle_t handle, |
9 | | - infiniopSoftplusDescriptor_t *desc_ptr, |
10 | | - infiniopTensorDescriptor_t y, |
11 | | - infiniopTensorDescriptor_t x); |
12 | | - |
13 | | -__INFINI_C __export infiniStatus_t infiniopGetSoftplusWorkspaceSize(infiniopSoftplusDescriptor_t desc, size_t *size); |
| 14 | +__INFINI_C __export infiniStatus_t infiniopGetSoftplusWorkspaceSize( |
| 15 | + infiniopSoftplusDescriptor_t desc, |
| 16 | + size_t *size); |
14 | 17 |
|
15 | | -__INFINI_C __export infiniStatus_t infiniopSoftplus(infiniopSoftplusDescriptor_t desc, |
16 | | - void *workspace, |
17 | | - size_t workspace_size, |
18 | | - void *y, |
19 | | - const void *x, |
20 | | - void *stream); |
| 18 | +__INFINI_C __export infiniStatus_t infiniopSoftplus( |
| 19 | + infiniopSoftplusDescriptor_t desc, |
| 20 | + void *workspace, |
| 21 | + size_t workspace_size, |
| 22 | + void *y, |
| 23 | + const void *x, |
| 24 | + void *stream); |
21 | 25 |
|
22 | | -__INFINI_C __export infiniStatus_t infiniopDestroySoftplusDescriptor(infiniopSoftplusDescriptor_t desc); |
| 26 | +__INFINI_C __export infiniStatus_t infiniopDestroySoftplusDescriptor( |
| 27 | + infiniopSoftplusDescriptor_t desc); |
23 | 28 |
|
24 | | -#endif |
| 29 | +#endif // __INFINIOP_OPS_SOFTPLUS_API_H__ |
0 commit comments