Table of Contents

Method Gpu

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

Gpu(string, int)

Creates a tensor override that places matching tensors on a specific GPU.

public static LM.TensorOverride Gpu(string pattern, int gpuIndex = 0)

Parameters

pattern string

A regex pattern to match tensor names.

gpuIndex int

The GPU device index (0-based).

Returns

LM.TensorOverride

A new LM.TensorOverride targeting the specified GPU.

Share