-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathhardswish.h
More file actions
24 lines (17 loc) · 1.16 KB
/
hardswish.h
File metadata and controls
24 lines (17 loc) · 1.16 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_HARDSWISH_API_H__
#define __INFINIOP_HARDSWISH_API_H__
#include "../operator_descriptor.h"
typedef struct InfiniopDescriptor *infiniopHardswishDescriptor_t;
__C __export infiniStatus_t infiniopCreateHardswishDescriptor(infiniopHandle_t handle,
infiniopHardswishDescriptor_t *desc_ptr,
infiniopTensorDescriptor_t output,
infiniopTensorDescriptor_t input);
__C __export infiniStatus_t infiniopGetHardswishWorkspaceSize(infiniopHardswishDescriptor_t desc, size_t *size);
__C __export infiniStatus_t infiniopHardswish(infiniopHardswishDescriptor_t desc,
void *workspace,
size_t workspace_size,
void *output,
const void *input,
void *stream);
__C __export infiniStatus_t infiniopDestroyHardswishDescriptor(infiniopHardswishDescriptor_t desc);
#endif