Tensor<T>.AsReadOnlyTensorSpan 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AsReadOnlyTensorSpan() |
將此 Tensor<T> 轉換成指向相同備份記憶體的 ReadOnlyTensorSpan<T>。/> |
AsReadOnlyTensorSpan(ReadOnlySpan<NIndex>) |
根據提供的開始索引,將此 Tensor<T> 轉換成指向相同備份記憶體的 ReadOnlyTensorSpan<T>。/> |
AsReadOnlyTensorSpan(ReadOnlySpan<NRange>) |
根據提供的範圍,將此 Tensor<T> 轉換成指向相同備份記憶體的 ReadOnlyTensorSpan<T>。/> |
AsReadOnlyTensorSpan(ReadOnlySpan<IntPtr>) |
將此 Tensor<T> 轉換成 ReadOnlyTensorSpan<T>,以根據提供的開始位置指向相同的備份記憶體。/> |
AsReadOnlyTensorSpan()
- 來源:
- Tensor.cs
- 來源:
- Tensor.cs
將此 Tensor<T> 轉換成指向相同備份記憶體的 ReadOnlyTensorSpan<T>。/>
public:
virtual System::Numerics::Tensors::ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan();
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan ();
abstract member AsReadOnlyTensorSpan : unit -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
override this.AsReadOnlyTensorSpan : unit -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
Public Function AsReadOnlyTensorSpan () As ReadOnlyTensorSpan(Of T)
傳回
實作
適用於
AsReadOnlyTensorSpan(ReadOnlySpan<NIndex>)
- 來源:
- Tensor.cs
- 來源:
- Tensor.cs
根據提供的開始索引,將此 Tensor<T> 轉換成指向相同備份記憶體的 ReadOnlyTensorSpan<T>。/>
public:
virtual System::Numerics::Tensors::ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(ReadOnlySpan<System::Buffers::NIndex> startIndex);
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan (scoped ReadOnlySpan<System.Buffers.NIndex> startIndex);
abstract member AsReadOnlyTensorSpan : ReadOnlySpan<System.Buffers.NIndex> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
override this.AsReadOnlyTensorSpan : ReadOnlySpan<System.Buffers.NIndex> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
Public Function AsReadOnlyTensorSpan (startIndex As ReadOnlySpan(Of NIndex)) As ReadOnlyTensorSpan(Of T)
參數
- startIndex
- ReadOnlySpan<NIndex>
您想要在 ReadOnlyTensorSpan<T> 中的開始索引
傳回
實作
適用於
AsReadOnlyTensorSpan(ReadOnlySpan<NRange>)
- 來源:
- Tensor.cs
- 來源:
- Tensor.cs
根據提供的範圍,將此 Tensor<T> 轉換成指向相同備份記憶體的 ReadOnlyTensorSpan<T>。/>
public:
virtual System::Numerics::Tensors::ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(ReadOnlySpan<System::Buffers::NRange> start);
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan (scoped ReadOnlySpan<System.Buffers.NRange> start);
abstract member AsReadOnlyTensorSpan : ReadOnlySpan<System.Buffers.NRange> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
override this.AsReadOnlyTensorSpan : ReadOnlySpan<System.Buffers.NRange> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
Public Function AsReadOnlyTensorSpan (start As ReadOnlySpan(Of NRange)) As ReadOnlyTensorSpan(Of T)
參數
- start
- ReadOnlySpan<NRange>
您想要在 ReadOnlyTensorSpan<T> 的範圍
傳回
實作
適用於
AsReadOnlyTensorSpan(ReadOnlySpan<IntPtr>)
- 來源:
- Tensor.cs
- 來源:
- Tensor.cs
將此 Tensor<T> 轉換成 ReadOnlyTensorSpan<T>,以根據提供的開始位置指向相同的備份記憶體。/>
public:
virtual System::Numerics::Tensors::ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(ReadOnlySpan<IntPtr> start);
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan (scoped ReadOnlySpan<IntPtr> start);
abstract member AsReadOnlyTensorSpan : ReadOnlySpan<nativeint> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
override this.AsReadOnlyTensorSpan : ReadOnlySpan<nativeint> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
Public Function AsReadOnlyTensorSpan (start As ReadOnlySpan(Of IntPtr)) As ReadOnlyTensorSpan(Of T)
參數
- start
-
ReadOnlySpan<nativeint>
您想要在 ReadOnlyTensorSpan<T> 中的開始位置