Skip to content

< Back


TensorBufferOverride

Namespace: LLama.Abstractions

Represents a mapping between a tensor name pattern and a specific buffer type

1
public class TensorBufferOverride

Inheritance ObjectTensorBufferOverride
Attributes NullableContextAttribute, NullableAttribute

Properties

Pattern

Pattern to match tensor names. This is a regular expression. You can check the tensor names via the model.Metadata.

1
public string Pattern { get; set; }

Property Value

String

BufferType

Buffer type to use for matching tensors. Examples: CPU, GPU0, GPU1

1
public string BufferType { get; set; }

Property Value

String

Constructors

TensorBufferOverride(String, String)

Creates a new tensor buffer override

1
public TensorBufferOverride(string pattern, string bufferType)

Parameters

pattern String
Pattern to match tensor names

bufferType String
Buffer type to use for matching tensors


< Back