forked from InfiniTensor/InfiniCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelu6.h
More file actions
24 lines (17 loc) · 1.07 KB
/
relu6.h
File metadata and controls
24 lines (17 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __INFINIOP_RELU6_API_H__
#define __INFINIOP_RELU6_API_H__
#include "../operator_descriptor.h"
typedef struct InfiniopDescriptor *infiniopRelu6Descriptor_t;
__C __export infiniStatus_t infiniopCreateRelu6Descriptor(infiniopHandle_t handle,
infiniopRelu6Descriptor_t *desc_ptr,
infiniopTensorDescriptor_t y,
infiniopTensorDescriptor_t x);
__C __export infiniStatus_t infiniopGetRelu6WorkspaceSize(infiniopRelu6Descriptor_t desc, size_t *size);
__C __export infiniStatus_t infiniopRelu6(infiniopRelu6Descriptor_t desc,
void *workspace,
size_t workspace_size,
void *y,
const void *x,
void *stream);
__C __export infiniStatus_t infiniopDestroyRelu6Descriptor(infiniopRelu6Descriptor_t desc);
#endif