relu.h 1.05 KB
Newer Older
PanZezhong's avatar
PanZezhong committed
1
2
#ifndef __INFINIOP_RELU_API_H__
#define __INFINIOP_RELU_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
typedef struct InfiniopDescriptor *infiniopReluDescriptor_t;
PanZezhongQY's avatar
PanZezhongQY committed
7

PanZezhong's avatar
PanZezhong committed
8
9
10
11
__C __export infiniStatus_t infiniopCreateReluDescriptor(infiniopHandle_t handle,
                                                         infiniopReluDescriptor_t *desc_ptr,
                                                         infiniopTensorDescriptor_t y,
                                                         infiniopTensorDescriptor_t x);
PanZezhongQY's avatar
PanZezhongQY committed
12

13
14
__C __export infiniStatus_t infiniopGetReluWorkspaceSize(infiniopReluDescriptor_t desc, size_t *size);

PanZezhong's avatar
PanZezhong committed
15
__C __export infiniStatus_t infiniopRelu(infiniopReluDescriptor_t desc,
16
17
                                         void *workspace,
                                         size_t workspace_size,
PanZezhong's avatar
PanZezhong committed
18
                                         void *y,
19
                                         const void *x,
PanZezhong's avatar
PanZezhong committed
20
                                         void *stream);
PanZezhongQY's avatar
PanZezhongQY committed
21

PanZezhong's avatar
PanZezhong committed
22
__C __export infiniStatus_t infiniopDestroyReluDescriptor(infiniopReluDescriptor_t desc);
PanZezhongQY's avatar
PanZezhongQY committed
23
24

#endif