Skip to content

EncodeClassifyOptions

Defined in: packages/runntime/src/zoo/tasks/cv/imageClassification.ts:65

The options every encode method takes. Every resource must come from the device passed to initRunntime().

readonly optional encoder?: GpuEncoder

Defined in: packages/runntime/src/zoo/tasks/gpu.ts:38

Records into this encoder, and the caller finishes and submits it, before disposing the runner. It must not have an open pass. Default: a new encoder, submitted before the method returns.

EncodeOptions.encoder


readonly source: GpuImage | GpuTensor<ClassifyInput>

Defined in: packages/runntime/src/zoo/tasks/gpu.ts:33

EncodeOptions.source


readonly target: GpuTensor

Defined in: packages/runntime/src/zoo/tasks/gpu.ts:34

EncodeOptions.target


readonly optional topk?: number

Defined in: packages/runntime/src/zoo/tasks/cv/imageClassification.ts:71

How many classes to write, best first. Default: as many as the target holds, up to every class.