Class DeprecatedTensorExtensions | Barracuda | 1.1.2-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class DeprecatedTensorExtensions

    Inheritance
    Object
    DeprecatedTensorExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Barracuda
    Syntax
    public static class DeprecatedTensorExtensions

    Methods

    CastOnDevice(Tensor, ITensorData)

    Declaration
    [Obsolete("Use AttachToDevice instead.", false)]
    public static void CastOnDevice(this Tensor self, ITensorData onDevice)
    Parameters
    Type Name Description
    Tensor self
    ITensorData onDevice

    PinToDeviceAndDownloadFromIt(Tensor, ITensorData)

    Declaration
    [Obsolete("Use AttachToDevice instead.", false)]
    public static void PinToDeviceAndDownloadFromIt(this Tensor self, ITensorData onDevice)
    Parameters
    Type Name Description
    Tensor self
    ITensorData onDevice

    PinToDeviceAndUploadToIt(Tensor, ITensorData, Boolean)

    Declaration
    [Obsolete("Use UploadToDevice instead.", false)]
    public static void PinToDeviceAndUploadToIt(this Tensor self, ITensorData onDevice, bool forceInvalidateCache = true)
    Parameters
    Type Name Description
    Tensor self
    ITensorData onDevice
    Boolean forceInvalidateCache

    Unpin(Tensor, Boolean)

    Declaration
    [Obsolete("Use DetachFromDevice instead.", false)]
    public static ITensorData Unpin(this Tensor self, bool disposeUnpinned = true)
    Parameters
    Type Name Description
    Tensor self
    Boolean disposeUnpinned
    Returns
    Type Description
    ITensorData
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 15 October 2020