docs.unity3d.com
    Show / Hide Table of Contents

    Class DeprecatedTensorExtensions

    Deprecated APIs, left here only for backwards compatibility

    Inheritance
    Object
    DeprecatedTensorExtensions
    Namespace: Unity.Barracuda
    Syntax
    public static class DeprecatedTensorExtensions : object

    Methods

    AdjustPadToPool(Tensor, ValueTuple<Int32, Int32>, Int32[], Int32[])

    Deprecated, use AdjustPadToPool version with pool as an array instead

    Declaration
    public static int[] AdjustPadToPool(this Tensor tensor, ValueTuple<int, int> pool, int[] stride, int[] pad)
    Parameters
    Type Name Description
    Tensor tensor

    Tensor

    ValueTuple<Int32, Int32> pool

    pool tuple

    Int32[] stride

    stride

    Int32[] pad

    padding

    Returns
    Type Description
    Int32[]

    shape as int array

    AdjustPadToPool(TensorShape, ValueTuple<Int32, Int32>, Int32[], Int32[])

    Deprecated, use AdjustPadToPool version with pool as an array instead

    Declaration
    public static int[] AdjustPadToPool(this TensorShape shape, ValueTuple<int, int> pool, int[] stride, int[] pad)
    Parameters
    Type Name Description
    TensorShape shape

    TensorShape

    ValueTuple<Int32, Int32> pool

    pool tuple

    Int32[] stride

    stride

    Int32[] pad

    padding

    Returns
    Type Description
    Int32[]

    shape as int array

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023