Documentation
¶
Index ¶
Constants ¶
const DeviceCeilings = "inference.modeld.ceilings"
DeviceCeilings is the per-pool memory ceiling setting: a JSON object mapping a memory pool id ("host" or an accelerator id the inventory reports) to the share of that pool's total bytes the model runtime may hold, 0 < share <= 1.
Variables ¶
This section is empty.
Functions ¶
func ParseDeviceCeilings ¶
ParseDeviceCeilings decodes and validates a stored DeviceCeilings value. An empty value is the unset setting: no pool carries a ceiling.
func ValidateDeviceCeiling ¶
ValidateDeviceCeiling refuses a pool id outside the inventory's spelling and a share outside (0, 1].
Types ¶
type Spec ¶
type Spec struct {
Key string `json:"key"`
Label string `json:"label"`
Meaning string `json:"meaning"`
Changes string `json:"effect"`
ReadBy string `json:"read_by"`
Env string `json:"environment_variable"`
Unset string `json:"unset_behavior"`
}
Spec describes a setting independently of its storage and presentation.