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