-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathdiagflat.h
More file actions
32 lines (24 loc) · 885 Bytes
/
diagflat.h
File metadata and controls
32 lines (24 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#ifndef __INFINIOP_DIAGFLAT_API_H__
#define __INFINIOP_DIAGFLAT_API_H__
#include "../operator_descriptor.h"
#include <cstdint>
typedef struct InfiniopDescriptor *infiniopDiagflatDescriptor_t;
__C __export infiniStatus_t infiniopCreateDiagflatDescriptor(
infiniopHandle_t handle,
infiniopDiagflatDescriptor_t *desc_ptr,
infiniopTensorDescriptor_t output,
infiniopTensorDescriptor_t input,
int64_t offset);
__C __export infiniStatus_t
infiniopGetDiagflatWorkspaceSize(infiniopDiagflatDescriptor_t desc, size_t *size);
__C __export infiniStatus_t infiniopDiagflat(
infiniopDiagflatDescriptor_t desc,
void *workspace,
size_t workspace_size,
void *output,
const void *input,
void *stream);
__C __export infiniStatus_t
infiniopDestroyDiagflatDescriptor(infiniopDiagflatDescriptor_t desc);
#endif // __INFINIOP_DIAGFLAT_API_H__