|
| base::Status | checkDevice (base::DeviceType device_type, std::string library_path) |
| | 检查设备是否可用 More...
|
| |
| Event * | createEvent (base::DeviceType device_type) |
| | 创建指定类型的事件 More...
|
| |
| base::Status | createEvents (base::DeviceType device_type, Event **events, size_t count) |
| | 批量创建事件 More...
|
| |
| Stream * | createStream (base::DeviceType device_type) |
| | 创建指定类型的流 More...
|
| |
| Stream * | createStream (base::DeviceType device_type, void *stream) |
| | 从现有流创建流对象 More...
|
| |
| Tensor * | createTensor (base::TensorType type) |
| |
| base::Status | destoryArchitecture () |
| | 销毁架构 More...
|
| |
| base::Status | destoryArchitecture (base::DeviceTypeCode device_type_code) |
| | 销毁指定类型的架构 More...
|
| |
| base::Status | destroyEvent (Event *event) |
| | 销毁事件 More...
|
| |
| base::Status | destroyEvents (base::DeviceType device_type, Event **events, size_t count) |
| | 批量销毁事件 More...
|
| |
| base::Status | destroyStream (Stream *stream) |
| | 销毁流 More...
|
| |
| base::Status | disableDevice () |
| | 禁用设备 More...
|
| |
| base::Status | enableDevice (base::DeviceType device_type, std::string library_path) |
| | 启用设备 More...
|
| |
| Architecture * | getArchitecture (base::DeviceTypeCode type) |
| | 获取指定类型的架构 More...
|
| |
| std::map< base::DeviceTypeCode, std::shared_ptr< Architecture > > & | getArchitectureMap () |
| | 获取架构映射表 More...
|
| |
| std::shared_ptr< Architecture > | getArchitectureSharedPtr (base::DeviceTypeCode type) |
| | 获取指定类型架构的共享指针 More...
|
| |
| Device * | getDefaultHostDevice () |
| | 获取默认主机设备 More...
|
| |
| base::DeviceType | getDefaultHostDeviceType () |
| | 获取默认主机设备类型 More...
|
| |
| Device * | getDevice (base::DeviceType device_type) |
| | 获取指定类型的设备 More...
|
| |
| std::vector< DeviceInfo > | getDeviceInfo (base::DeviceTypeCode type, std::string library_path) |
| | 获取设备信息 More...
|
| |
| std::map< base::TensorType, std::shared_ptr< TensorCreator > > & | getGlobalTensorCreatorMap () |
| |
| template<typename T > |
| base::Status | insertStream (int &index, std::map< int, T > &stream_map, const T &stream) |
| |
| bool | isHostDeviceType (base::DeviceType device_type) |
| | 判断是否为主机设备类型 More...
|
| |
| template<typename T > |
| base::Status | randnTensor (T &generator, float mean, float std, Tensor *tensor, int64_t seed=-1) |
| |
| template<typename T > |
| int | updateStreamIndex (std::map< int, T > &stream_map) |
| |