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