Place
@Target(allowedTargets = [AnnotationTarget.PROPERTY, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FIELD] )
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>Content copied to clipboard