---
title: "ClikaRT::io::LoadPlan"
sidebar_label: "LoadPlan"
description: "The recommended load PLAN: the policy plus the placement budget a weight-residency scheduler consumes: how many bytes of weights to KEEP device-resident (the rest streams; evicted after use, prefetche…"
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--struct">struct</span>

**Header:** `ClikaRT/io/tensors_container.h`

The recommended load PLAN: the policy plus the placement budget a weight-residency scheduler consumes: how many bytes of weights to KEEP device-resident (the rest streams; evicted after use, prefetched ahead of it). When the checkpoint fits under the runtime's offload-headroom share of the device's available memory, the budget is the checkpoint's `total_bytes()` (keep everything) and `policy.sticky` is false; when it doesn't fit, the budget is that headroom share and `policy.sticky` is true; when the available figure is unknown, the budget is 0 and the policy is plain; the runtime never guesses.

## Data members

### policy {#policy}

<div class="api-signature">

[`LoadPolicy`](./LoadPolicy.md) **`policy`**

</div>

how the planned load materializes (see [LoadPolicy](./LoadPolicy.md))

<div class="api-declared">

Declared in `ClikaRT/io/tensors_container.h`, line 377

</div>

### resident\_byte\_budget {#resident_byte_budget}

<div class="api-signature">

`std::uint64_t` **`resident_byte_budget`** `= 0`

</div>

Bytes of weights to keep device-resident.

<div class="api-declared">

Declared in `ClikaRT/io/tensors_container.h`, line 379

</div>
