TensorMarshal
CreateReadOnlyTensorSpan<T>(T, nint, ReadOnlySpan<nint>, ReadOnlySpan<nint>, Boolean)
CreateTensorSpan<T>(T, nint, ReadOnlySpan<nint>, ReadOnlySpan<nint>, Boolean)
GetReference<T>(ReadOnlyTensorSpan<T>)
GetReference<T>(TensorSpan<T>)
net11.0-windows7.0
namespace System.Runtime.InteropServices
{
public static class TensorMarshal
{
public static TensorSpan<T> CreateTensorSpan<T>(ref T data, IntPtr dataLength, ReadOnlySpan<IntPtr> lengths, ReadOnlySpan<IntPtr> strides, bool pinned);
}
}
| Design Reviews |
|
|---|---|
| .NET | 8.09.010.011.0 |
Information specific to net11.0 | |
| Platforms | This API is only available when you target a specific platform: |
| Windows | 7.0 |
Information specific to net11.0-windows7.0 | |
| Assembly | System.Numerics.Tensors , Version=10.0.0.14, PublicKeyToken=cc7b13ffcd2ddd51 |
| Referencing | Your project needs a package reference to |
| Package | System.Numerics.Tensors (10.0.14) net9.0 |
| Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API