zeros.h 1.09 KB
Newer Older
1
2
3
4
5
6
7
#ifndef __INFINIOP_ZEROS_API_H__
#define __INFINIOP_ZEROS_API_H__

#include "../operator_descriptor.h"

typedef struct InfiniopDescriptor *infiniopZerosDescriptor_t;

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

13
__INFINI_C __export infiniStatus_t infiniopGetZerosWorkspaceSize(infiniopZerosDescriptor_t desc, size_t *size);
14

15
__INFINI_C __export infiniStatus_t infiniopZeros(infiniopZerosDescriptor_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 infiniopDestroyZerosDescriptor(infiniopZerosDescriptor_t desc);
23
24

#endif