C# Class DLPack.DLManagedTensor

Mostrar archivo Open project: vadimkantorov/dotnetlibtorch Class Usage Examples

Public Properties

Property Type Description
deleter DLDeleterFunc
dl_tensor DLTensor
manager_ctx IntPtr

Public Methods

Method Description
CallDeleter ( ) : void
EmptyDeleter ( DLManagedTensor &self ) : void
FromBlob ( T* data, Int32 ndim, Int64* shape, Int64* strides = null ) : DLManagedTensor

Method Details

CallDeleter() public method

public CallDeleter ( ) : void
return void

EmptyDeleter() public static method

public static EmptyDeleter ( DLManagedTensor &self ) : void
self DLManagedTensor
return void

FromBlob() public static method

public static FromBlob ( T* data, Int32 ndim, Int64* shape, Int64* strides = null ) : DLManagedTensor
data T*
ndim Int32
shape Int64*
strides Int64*
return DLManagedTensor

Property Details

deleter public_oe property

public DLDeleterFunc deleter
return DLDeleterFunc

dl_tensor public_oe property

public DLTensor,DLPack dl_tensor
return DLTensor

manager_ctx public_oe property

public IntPtr manager_ctx
return IntPtr