docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DeprecatedTensorExtensions

    Deprecated APIs, left here only for backwards compatibility

    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
    Assembly: solution.dll
    Syntax
    public static class DeprecatedTensorExtensions

    Methods

    AdjustPadToPool(Tensor, (int, int), int[], int[])

    Deprecated, use AdjustPadToPool version with pool as an array instead

    Declaration
    [Obsolete("Use AdjustPadToPool version with pool as an array instead.", false)]
    public static int[] AdjustPadToPool(this Tensor tensor, (int, int) pool, int[] stride, int[] pad)
    Parameters
    Type Name Description
    Tensor tensor

    Tensor

    (int, int) pool

    pool tuple

    int[] stride

    stride

    int[] pad

    padding

    Returns
    Type Description
    int[]

    shape as int array

    AdjustPadToPool(TensorShape, (int, int), int[], int[])

    Deprecated, use AdjustPadToPool version with pool as an array instead

    Declaration
    [Obsolete("Use AdjustPadToPool version with pool as an array instead.", false)]
    public static int[] AdjustPadToPool(this TensorShape shape, (int, int) pool, int[] stride, int[] pad)
    Parameters
    Type Name Description
    TensorShape shape

    TensorShape

    (int, int) pool

    pool tuple

    int[] stride

    stride

    int[] pad

    padding

    Returns
    Type Description
    int[]

    shape as int array

    CastOnDevice(Tensor, ITensorData)

    Deprecated. Use AttachToDevice instead

    Declaration
    [Obsolete("Use AttachToDevice instead.", false)]
    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
    [Obsolete("Use AttachToDevice instead.", false)]
    public static void PinToDeviceAndDownloadFromIt(this Tensor self, ITensorData onDevice)
    Parameters
    Type Name Description
    Tensor self

    Tensor

    ITensorData onDevice

    ITensorData

    PinToDeviceAndUploadToIt(Tensor, ITensorData, bool)

    Deprecated. Use UploadToDevice instead

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

    Tensor

    ITensorData onDevice

    ITensorData

    bool forceInvalidateCache

    Force cache invalidation

    Unpin(Tensor, bool)

    Deprecated. Use DetachFromDevice instead

    Declaration
    [Obsolete("Use DetachFromDevice instead.", false)]
    public static ITensorData Unpin(this Tensor self, bool disposeUnpinned = true)
    Parameters
    Type Name Description
    Tensor self

    Tensor

    bool disposeUnpinned

    Call dispose when unpinned

    Returns
    Type Description
    ITensorData
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)