blace.ai
Loading...
Searching...
No Matches
util_common.h
Go to the documentation of this file.
1#pragma once
2#include "library_defines.h"
3#include "ml_core/types.h"
4#include <filesystem>
5#include <vector>
6
12namespace blace {
13namespace util {
19EXPORT_OR_IMPORT std::filesystem::path getPathToExe();
20
26EXPORT_OR_IMPORT std::optional<blace::ml_core::DeviceEnum> get_accelerator();
27
28} // namespace util
29} // namespace blace
Basic types of the blace.ai library.
EXPORT_OR_IMPORT std::optional< blace::ml_core::DeviceEnum > get_accelerator()
Gets the available accelerator. CPU, CUDA or MPS.
EXPORT_OR_IMPORT std::filesystem::path getPathToExe()
Get the path to the running executable.