Class GenericVarsWithPreallocation | Barracuda | 0.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class GenericVarsWithPreallocation

    Inheritance
    Object
    GenericVars
    GenericVarsWithReuse
    GenericVarsWithPreallocation
    DefaultVars
    Inherited Members
    GenericVarsWithReuse.layerRequiresStorage
    GenericVarsWithReuse.temporary
    GenericVarsWithReuse.ReleaseTemporary()
    GenericVarsWithReuse.PrepareStorage(Layer)
    GenericVarsWithReuse.Store(Layer, Tensor)
    GenericVarsWithReuse.PeekOutput(String)
    GenericVars.m_ModelTensors
    GenericVars.m_InputTensorsByLayer
    GenericVars.m_StringCache
    GenericVars.Dispose()
    GenericVars.ValidateGlobalInputs(Model, IDictionary<String, TensorShape>)
    GenericVars.PrepareLayerInputTensors(Model, Layer, IOps)
    GenericVars.SetInput(String, Tensor)
    GenericVars.GatherInputs(Layer)
    GenericVars.PeekConstants(String)
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Barracuda
    Syntax
    public class GenericVarsWithPreallocation : GenericVarsWithReuse, IVars, ITensorAllocator, IDisposable

    Properties

    busyBytes

    Declaration
    public long busyBytes { get; }
    Property Value
    Type Description
    Int64

    freeBytes

    Declaration
    public long freeBytes { get; }
    Property Value
    Type Description
    Int64

    totalBytes

    Declaration
    public long totalBytes { get; }
    Property Value
    Type Description
    Int64

    Methods

    Alloc(TensorShape)

    Declaration
    public virtual Tensor Alloc(TensorShape shape)
    Parameters
    Type Name Description
    TensorShape shape
    Returns
    Type Description
    Tensor
    Implements
    ITensorAllocator.Alloc(TensorShape)

    Alloc(TensorShape, ITensorData)

    Declaration
    public virtual Tensor Alloc(TensorShape shape, ITensorData buffer)
    Parameters
    Type Name Description
    TensorShape shape
    ITensorData buffer
    Returns
    Type Description
    Tensor
    Implements
    ITensorAllocator.Alloc(TensorShape, ITensorData)

    Cast(Tensor, ITensorData, ITensorData)

    Declaration
    public virtual void Cast(Tensor x, ITensorData newBuffer, ITensorData oldBuffer)
    Parameters
    Type Name Description
    Tensor x
    ITensorData newBuffer
    ITensorData oldBuffer
    Implements
    ITensorAllocator.Cast(Tensor, ITensorData, ITensorData)

    GetAllocator()

    Declaration
    public override ITensorAllocator GetAllocator()
    Returns
    Type Description
    ITensorAllocator
    Overrides
    GenericVars.GetAllocator()

    IsTensorOwnedByInternalAllocator(Tensor)

    Declaration
    protected override bool IsTensorOwnedByInternalAllocator(Tensor tensor)
    Parameters
    Type Name Description
    Tensor tensor
    Returns
    Type Description
    Boolean
    Overrides
    GenericVars.IsTensorOwnedByInternalAllocator(Tensor)

    PrepareStorage(Model, IOps, IDictionary<String, TensorShape>)

    Declaration
    public override void PrepareStorage(Model model, IOps ops, IDictionary<string, TensorShape> inputShapes)
    Parameters
    Type Name Description
    Model model
    IOps ops
    IDictionary<String, TensorShape> inputShapes
    Overrides
    GenericVarsWithReuse.PrepareStorage(Model, IOps, IDictionary<String, TensorShape>)

    Release(Tensor, Boolean)

    Declaration
    public virtual void Release(Tensor x, bool calledFromTensorDispose)
    Parameters
    Type Name Description
    Tensor x
    Boolean calledFromTensorDispose
    Implements
    ITensorAllocator.Release(Tensor, Boolean)

    Repin(Tensor, ITensorData, ITensorData, Boolean)

    Declaration
    public virtual void Repin(Tensor x, ITensorData newBuffer, ITensorData oldBuffer, bool disposeUnpinnedHint)
    Parameters
    Type Name Description
    Tensor x
    ITensorData newBuffer
    ITensorData oldBuffer
    Boolean disposeUnpinnedHint
    Implements
    ITensorAllocator.Repin(Tensor, ITensorData, ITensorData, Boolean)

    Reset(Boolean)

    Declaration
    public virtual void Reset(bool keepCachedMemory)
    Parameters
    Type Name Description
    Boolean keepCachedMemory
    Implements
    ITensorAllocator.Reset(Boolean)

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    WaiveOwnership(Tensor)

    Declaration
    public virtual void WaiveOwnership(Tensor x)
    Parameters
    Type Name Description
    Tensor x
    Implements
    ITensorAllocator.WaiveOwnership(Tensor)
    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