ones.h 1.08 KB
Newer Older
1
2
3
4
5
6
7
#ifndef __INFINIOP_ONES_API_H__
#define __INFINIOP_ONES_API_H__

#include "../operator_descriptor.h"

typedef struct InfiniopDescriptor *infiniopOnesDescriptor_t;

8
__INFINI_C __export infiniStatus_t infiniopCreateOnesDescriptor(infiniopHandle_t handle,
9
10
11
12
                                                         infiniopOnesDescriptor_t *desc_ptr,
                                                         infiniopTensorDescriptor_t y,
                                                         infiniopTensorDescriptor_t x);

13
__INFINI_C __export infiniStatus_t infiniopGetOnesWorkspaceSize(infiniopOnesDescriptor_t desc, size_t *size);
14

15
__INFINI_C __export infiniStatus_t infiniopOnes(infiniopOnesDescriptor_t desc,
16
17
18
19
20
21
                                         void *workspace,
                                         size_t workspace_size,
                                         void *y,
                                         const void *x,
                                         void *stream);

22
__INFINI_C __export infiniStatus_t infiniopDestroyOnesDescriptor(infiniopOnesDescriptor_t desc);
23
24

#endif