Mila 0.13.48
Deep Neural Network Library
Loading...
Searching...
No Matches
DeviceId.ixx File Reference

Lightweight device identifier value type. More...

#include <string>
#include <string_view>
#include <stdexcept>
import Compute.DeviceType;

Classes

struct  Mila::Dnn::Compute::DeviceId
 Lightweight identifier for a compute device. More...
struct  std::hash< Mila::Dnn::Compute::DeviceId >
 Hash specialization for DeviceId. More...

Namespaces

namespace  Mila
 Mila main API namespace.
namespace  Mila::Dnn
namespace  Mila::Dnn::Compute
namespace  std

Detailed Description

Lightweight device identifier value type.

Provides a compact, comparable representation of a device type and index (e.g., "Cuda:0", "CPU:0"). Typically constructed via Device factory methods (Device::Cuda(0), Device::Cpu()) rather than directly.