Placement

data class Placement(val device: DeviceKind = DeviceKind.CPU, val domain: MemoryDomain = MemoryDomain.HOST_HEAP, val residency: Residency = Residency.PERSISTENT, val requirement: Requirement = Requirement.PREFERRED, val fallback: DeviceKind = DeviceKind.CPU)(source)

High-level placement descriptor: where a tensor lives and how the runtime should manage it.

Placement is intent — it tells the planner what to aim for but does not encode backend scratch-memory details. The planner resolves placement to a concrete BufferHandle and falls back if the preferred target is unavailable.

Constructors

Link copied to clipboard
constructor(device: DeviceKind = DeviceKind.CPU, domain: MemoryDomain = MemoryDomain.HOST_HEAP, residency: Residency = Residency.PERSISTENT, requirement: Requirement = Requirement.PREFERRED, fallback: DeviceKind = DeviceKind.CPU)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard