TensorInt32Bit 클래스

정의

32비트 부속 정수 텐서 개체입니다.

public ref class TensorInt32Bit sealed : ITensor
public ref class TensorInt32Bit sealed : ITensor, IClosable, IMemoryBuffer
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.MachineLearningContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TensorInt32Bit final : ITensor
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.MachineLearningContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TensorInt32Bit final : ITensor, IClosable, IMemoryBuffer
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.MachineLearningContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TensorInt32Bit : ITensor
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.MachineLearningContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TensorInt32Bit : System.IDisposable, ITensor, IMemoryBuffer
Public NotInheritable Class TensorInt32Bit
Implements ITensor
Public NotInheritable Class TensorInt32Bit
Implements IDisposable, IMemoryBuffer, ITensor
상속
Object Platform::Object IInspectable TensorInt32Bit
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10, version 1809 (10.0.17763.0에서 도입되었습니다.)
API contract
Windows.AI.MachineLearning.MachineLearningContract (v1.0에서 도입되었습니다.)

설명

텐서 값의 다차원 배열입니다. 32비트 부속 정수 텐서는 부가된 32비트 정수 값의 텐서입니다.

텐서의 레이아웃은 행 중심이며 각 차원을 나타내는 연속 데이터가 밀접하게 압축되어 있습니다. 텐서의 총 크기는 각 차원 크기의 곱입니다.

Windows Server

Windows Server에서 이 API를 사용하려면 데스크톱 환경과 함께 Windows Server 2019를 사용해야 합니다.

스레드로부터의 안전성

이 API는 스레드로부터 안전합니다.

버전 기록

Windows 버전 SDK 버전 추가된 값
1903 18362 CreateFromBuffer
1903 18362 CreateFromShapeArrayAndDataArray

속성

Kind

기능의 종류입니다.

Shape

각 차원의 개수와 크기를 반환합니다.

TensorKind

텐서의 데이터 형식을 반환합니다.

메서드

Close()

이 개체에서 만든 미해결 IMemoryBufferReference 개체가 없는 경우 Close 는 개체를 삭제하고 관련 리소스를 삭제합니다. 그렇지 않으면 Close 는 연결된 리소스에서 자체적으로 분리되며 마지막 IMemoryBufferReference 가 닫히면 제거됩니다.

Create()

버퍼를 할당하지 않고 서명된 32비트 정수 텐서 개체를 만듭니다.

Create(IIterable<Int64>)

부호 있는 32비트 정수 텐서 개체를 만들고 크기 셰이프의 버퍼를 할당합니다.

CreateFromArray(IIterable<Int64>, Int32[])

32비트 부호 있는 정수 텐서 개체를 만들고, 크기 셰이프의 버퍼를 할당하고, 모든 데이터를 해당 개체에 복사합니다.

CreateFromBuffer(Int64[], IBuffer)

지정된 셰이프를 사용하여 부호 있는 32비트 정수 텐서 개체를 만들고 후속 평가를 위해 버퍼의 기본 버퍼 를 사용합니다.

CreateFromIterable(IIterable<Int64>, IIterable<Int32>)

32비트 부호 있는 정수 텐서 개체를 만들고, 크기 셰이프의 버퍼를 할당하고, 모든 데이터를 해당 개체에 복사합니다.

CreateFromShapeArrayAndDataArray(Int64[], Int32[])

32비트 부호 있는 정수 텐서 개체를 만들고, 크기 셰이프의 버퍼를 할당하고, 모든 데이터를 해당 개체에 복사합니다.

CreateReference()

서명된 32비트 정수 텐서 개체를 지원하는 버퍼의 IMemoryBufferReference 표현을 반환합니다.

Dispose()

관리되지 않는 리소스의 확보, 해제 또는 다시 설정과 관련된 애플리케이션 정의 작업을 수행합니다.

GetAsVectorView()

데이터의 읽기 전용 보기를 반환합니다.

적용 대상

추가 정보