Place

annotation class Place(val device: DeviceKind = DeviceKind.AUTO, val memory: MemoryDomain = MemoryDomain.HOST_HEAP, val requirement: Requirement = Requirement.PREFERRED)(source)

Declares placement intent for a tensor parameter or property.

The MemoryPlanner reads these annotations (via reflection or codegen) to decide where tensors should be allocated. This expresses intent, not a hard guarantee — the planner may fall back if the target is unavailable and requirement is Requirement.PREFERRED.

Example:

@Place(device = DeviceKind.GPU, memory = MemoryDomain.DEVICE_LOCAL)
val projectionWeight: Tensor<FP32, Float>

Properties

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