Skip to main content

//clika-runtime/io.clika.modelverse/FitDevice

FitDevice

[common]
data class FitDevice(val label: String, val totalBytes: Long, val cores: Int = 0)

One device to judge a model against: label as the devices listing prints it (CPU:0, Vulkan:1), or any name the caller chooses for a device that is not this machine (a phone, or the memory left for one step of a pipeline after the earlier steps took theirs); totalBytes its memory; cores the CPU cores it decodes with (0 = unknown, no many-cores bonus in the speed estimate).

Constructors​

FitDevice[common]
constructor(label: String, totalBytes: Long, cores: Int = 0)

Properties​

NameSummary
cores[common]
val cores: Int = 0
label[common]
val label: String
totalBytes[common]
val totalBytes: Long