C# 클래스 DLPack.DLTensor

파일 보기 프로젝트 열기: vadimkantorov/dotnetlibtorch

공개 프로퍼티들

프로퍼티 타입 설명
byte_offset UInt64
ctx DLContext
data IntPtr
dtype DLDataType
ndim Int32
shape IntPtr
strides IntPtr

공개 메소드들

메소드 설명
CheckType ( ) : bool
DataSpanLessThan2Gb ( ) : ReadOnlySpan
Numel ( ) : Int64
Read ( ) : T
RowMajorContiguousStrides ( ReadOnlySpan shape ) : Int64[]
ShapeFromArray ( Array array ) : Int64[]
ShapeSpan ( ) : ReadOnlySpan
StridesSpan ( bool assumeRowMajorContiguousStrides = false ) : ReadOnlySpan
ToString ( ) : string

메소드 상세

CheckType() 공개 메소드

public CheckType ( ) : bool
리턴 bool

DataSpanLessThan2Gb() 공개 메소드

public DataSpanLessThan2Gb ( ) : ReadOnlySpan
리턴 ReadOnlySpan

Numel() 공개 메소드

public Numel ( ) : Int64
리턴 Int64

Read() 공개 메소드

public Read ( ) : T
리턴 T

RowMajorContiguousStrides() 공개 정적인 메소드

public static RowMajorContiguousStrides ( ReadOnlySpan shape ) : Int64[]
shape ReadOnlySpan
리턴 Int64[]

ShapeFromArray() 공개 정적인 메소드

public static ShapeFromArray ( Array array ) : Int64[]
array Array
리턴 Int64[]

ShapeSpan() 공개 메소드

public ShapeSpan ( ) : ReadOnlySpan
리턴 ReadOnlySpan

StridesSpan() 공개 메소드

public StridesSpan ( bool assumeRowMajorContiguousStrides = false ) : ReadOnlySpan
assumeRowMajorContiguousStrides bool
리턴 ReadOnlySpan

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

프로퍼티 상세

byte_offset 공개적으로 프로퍼티

public UInt64 byte_offset
리턴 UInt64

ctx 공개적으로 프로퍼티

public DLContext,DLPack ctx
리턴 DLContext

data 공개적으로 프로퍼티

public IntPtr data
리턴 IntPtr

dtype 공개적으로 프로퍼티

public DLDataType,DLPack dtype
리턴 DLDataType

ndim 공개적으로 프로퍼티

public Int32 ndim
리턴 Int32

shape 공개적으로 프로퍼티

public IntPtr shape
리턴 IntPtr

strides 공개적으로 프로퍼티

public IntPtr strides
리턴 IntPtr