-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathhypot.h
More file actions
26 lines (19 loc) · 1.24 KB
/
hypot.h
File metadata and controls
26 lines (19 loc) · 1.24 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
25
26
#ifndef __INFINIOP_HYPOT_API_H__
#define __INFINIOP_HYPOT_API_H__
#include "../operator_descriptor.h"
typedef struct InfiniopDescriptor *infiniopHypotDescriptor_t;
__C __export infiniStatus_t infiniopCreateHypotDescriptor(infiniopHandle_t handle,
infiniopHypotDescriptor_t *desc_ptr,
infiniopTensorDescriptor_t output,
infiniopTensorDescriptor_t input_a,
infiniopTensorDescriptor_t input_b);
__C __export infiniStatus_t infiniopGetHypotWorkspaceSize(infiniopHypotDescriptor_t desc, size_t *size);
__C __export infiniStatus_t infiniopHypot(infiniopHypotDescriptor_t desc,
void *workspace,
size_t workspace_size,
void *output,
const void *input_a,
const void *input_b,
void *stream);
__C __export infiniStatus_t infiniopDestroyHypotDescriptor(infiniopHypotDescriptor_t desc);
#endif