Class DeprecatedTensorExtensions
Deprecated APIs, left here only for backwards compatibility
Namespace: Unity.Barracuda
Syntax
public static class DeprecatedTensorExtensions : object
Methods
CastOnDevice(Tensor, ITensorData)
Deprecated. Use AttachToDevice
instead
Declaration
public static void CastOnDevice(this Tensor self, ITensorData onDevice)
Parameters
Type | Name | Description |
---|---|---|
Tensor | self | Tensor |
ITensorData | onDevice | ITensorData |
PinToDeviceAndDownloadFromIt(Tensor, ITensorData)
Deprecated. Use AttachToDevice
instead
Declaration
public static void PinToDeviceAndDownloadFromIt(this Tensor self, ITensorData onDevice)
Parameters
Type | Name | Description |
---|---|---|
Tensor | self | Tensor |
ITensorData | onDevice | ITensorData |
PinToDeviceAndUploadToIt(Tensor, ITensorData, Boolean)
Deprecated. Use UploadToDevice
instead
Declaration
public static void PinToDeviceAndUploadToIt(this Tensor self, ITensorData onDevice, bool forceInvalidateCache = true)
Parameters
Type | Name | Description |
---|---|---|
Tensor | self | Tensor |
ITensorData | onDevice | ITensorData |
Boolean | forceInvalidateCache | Force cache invalidation |
Unpin(Tensor, Boolean)
Deprecated. Use DetachFromDevice
instead
Declaration
public static ITensorData Unpin(this Tensor self, bool disposeUnpinned = true)
Parameters
Type | Name | Description |
---|---|---|
Tensor | self | Tensor |
Boolean | disposeUnpinned | Call dispose when unpinned |
Returns
Type | Description |
---|---|
ITensorData |