1 write to _isPinned
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\Tensor.cs (1)
87_isPinned = isPinned;
8 references to _isPinned
System.Numerics.Tensors (8)
System\Numerics\Tensors\netcore\Tensor.cs (7)
156public bool IsPinned => _isPinned; 357T[] values = _isPinned ? GC.AllocateArray<T>((int)linearLength, _isPinned) : (new T[linearLength]); 367return new Tensor<T>(values, [linearLength], _isPinned); 466T[] values = _isPinned ? GC.AllocateArray<T>(checked((int)s.FlattenedLength), _isPinned) : (new T[s.FlattenedLength]); 467var outTensor = new Tensor<T>(values, s.Lengths.ToArray(), _isPinned);
System\Numerics\Tensors\netcore\TensorExtensions.cs (1)
2678outTensor = new Tensor<T>(values, lengths, Array.Empty<nint>(), tensor._isPinned);