/
envoy.istio
/
mindspore
Обзор
Документация
Войти
/
envoy.istio
/
mindspore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/api/api_python/mindspore.hal.rst
64 строки
2 KB
shen_haochen
Add docs and python description
11 июн 2024, 10:22
11 июн 2024, 10:22
4cc80ba
Код
Авторство
О чём код?
mindspore.hal ============= Hal中封装了设备管理、流管理、事件管理与内存管理的接口。MindSpore从不同后端抽象出对应的上述模块,允许用户在Python层调度硬件资源。 设备管理 ------------ .. mscnplatformautosummary:: :toctree: hal :nosignatures: :template: classtemplate.rst mindspore.hal.device_count mindspore.hal.get_arch_list mindspore.hal.get_device_capability mindspore.hal.get_device_name mindspore.hal.get_device_properties mindspore.hal.is_available mindspore.hal.is_initialized 流管理 ------------ .. mscnplatformautosummary:: :toctree: hal :nosignatures: :template: classtemplate.rst mindspore.hal.current_stream mindspore.hal.default_stream mindspore.hal.set_cur_stream mindspore.hal.synchronize mindspore.hal.Stream mindspore.hal.StreamCtx 事件管理 ------------ .. mscnplatformautosummary:: :toctree: hal :nosignatures: :template: classtemplate.rst mindspore.hal.Event 内存管理 ------------ .. mscnplatformautosummary:: :toctree: hal :nosignatures: :template: classtemplate.rst mindspore.hal.max_memory_allocated mindspore.hal.max_memory_reserved mindspore.hal.memory_allocated mindspore.hal.memory_reserved mindspore.hal.memory_stats mindspore.hal.memory_summary mindspore.hal.reset_max_memory_reserved mindspore.hal.reset_max_memory_allocated mindspore.hal.reset_peak_memory_stats mindspore.hal.empty_cache