TensorSplitsCollection
Namespace: LLama.Abstractions
A fixed size array to set the tensor splits across multiple GPUs
1 | |
Inheritance Object → TensorSplitsCollection
Implements IEnumerable<Single>, IEnumerable
Attributes NullableContextAttribute, NullableAttribute, DefaultMemberAttribute, JsonConverterAttribute
Properties
Length
The size of this array
1 | |
Property Value
Item
1 | |
Property Value
Constructors
TensorSplitsCollection(Single[])
Create a new tensor splits collection, copying the given values
1 | |
Parameters
splits Single[]
Exceptions
TensorSplitsCollection()
Create a new tensor splits collection with all values initialised to the default
1 | |
Methods
Clear()
Set all values to zero
1 | |
GetEnumerator()
1 | |