# TensorSplitsCollection Namespace: LLama.Abstractions A fixed size array to set the tensor splits across multiple GPUs ```csharp public sealed class TensorSplitsCollection : System.Collections.Generic.IEnumerable`1[[System.Single, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Collections.IEnumerable ``` Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [TensorSplitsCollection](./llama.abstractions.tensorsplitscollection.md)
Implements [IEnumerable<Single>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1), [IEnumerable](https://docs.microsoft.com/en-us/dotnet/api/system.collections.ienumerable) ## Properties ### **Length** The size of this array ```csharp public int Length { get; } ``` #### Property Value [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)
### **Item** ```csharp public float Item { get; set; } ``` #### Property Value [Single](https://docs.microsoft.com/en-us/dotnet/api/system.single)
## Constructors ### **TensorSplitsCollection(Single[])** Create a new tensor splits collection, copying the given values ```csharp public TensorSplitsCollection(Single[] splits) ``` #### Parameters `splits` [Single[]](https://docs.microsoft.com/en-us/dotnet/api/system.single)
#### Exceptions [ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentexception)
### **TensorSplitsCollection()** Create a new tensor splits collection with all values initialised to the default ```csharp public TensorSplitsCollection() ``` ## Methods ### **Clear()** Set all values to zero ```csharp public void Clear() ``` ### **Pin()** ```csharp internal MemoryHandle Pin() ``` #### Returns [MemoryHandle](https://docs.microsoft.com/en-us/dotnet/api/system.buffers.memoryhandle)
### **GetEnumerator()** ```csharp public IEnumerator GetEnumerator() ``` #### Returns [IEnumerator<Single>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerator-1)