C# Class DLPack.DLTensor

Mostrar archivo Open project: vadimkantorov/dotnetlibtorch

Public Properties

Property Type Description
byte_offset UInt64
ctx DLContext
data IntPtr
dtype DLDataType
ndim Int32
shape IntPtr
strides IntPtr

Public Methods

Method Description
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

Method Details

CheckType() public method

public CheckType ( ) : bool
return bool

DataSpanLessThan2Gb() public method

public DataSpanLessThan2Gb ( ) : ReadOnlySpan
return ReadOnlySpan

Numel() public method

public Numel ( ) : Int64
return Int64

Read() public method

public Read ( ) : T
return T

RowMajorContiguousStrides() public static method

public static RowMajorContiguousStrides ( ReadOnlySpan shape ) : Int64[]
shape ReadOnlySpan
return Int64[]

ShapeFromArray() public static method

public static ShapeFromArray ( Array array ) : Int64[]
array Array
return Int64[]

ShapeSpan() public method

public ShapeSpan ( ) : ReadOnlySpan
return ReadOnlySpan

StridesSpan() public method

public StridesSpan ( bool assumeRowMajorContiguousStrides = false ) : ReadOnlySpan
assumeRowMajorContiguousStrides bool
return ReadOnlySpan

ToString() public method

public ToString ( ) : string
return string

Property Details

byte_offset public_oe property

public UInt64 byte_offset
return UInt64

ctx public_oe property

public DLContext,DLPack ctx
return DLContext

data public_oe property

public IntPtr data
return IntPtr

dtype public_oe property

public DLDataType,DLPack dtype
return DLDataType

ndim public_oe property

public Int32 ndim
return Int32

shape public_oe property

public IntPtr shape
return IntPtr

strides public_oe property

public IntPtr strides
return IntPtr