operator.h 532 Bytes
Newer Older
PanZezhongQY's avatar
PanZezhongQY committed
1
2
3
#ifndef __INFINIOP_OPERATOR___
#define __INFINIOP_OPERATOR___

4
5
#include "handle.h"
#include "tensor_descriptor.h"
PanZezhongQY's avatar
PanZezhongQY committed
6
7
8

// Base descriptor for all operators
typedef struct InfiniopDescriptor {
9
    infiniDevice_t device_type;
PanZezhongQY's avatar
PanZezhongQY committed
10
11
12
    int device_id;
} InfiniopDescriptor;

PanZezhong's avatar
PanZezhong committed
13
14
__C __export infiniStatus_t infiniopGetDescriptorDeviceType(const InfiniopDescriptor *desc_ptr, infiniDevice_t *device_type);
__C __export infiniStatus_t infiniopGetDescriptorDeviceId(const InfiniopDescriptor *desc_ptr, int *device_id);
15

PanZezhongQY's avatar
PanZezhongQY committed
16
#endif //__INFINIOP_OPERATOR___