Table of Contents

Property DeviceNumber

Namespace
LMKit.Inference
Assembly
LM-Kit.NET.dll

DeviceNumber

Gets the number of the device the context resides on. -1 indicates the CPU; a value of 0 or greater is the GPU device number (see DeviceNumber), matching the convention used by MainGpu.

public int DeviceNumber { get; }

Property Value

int
Share