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

    Class GenericVars

    Inheritance
    Object
    GenericVars
    GenericVarsWithReuse
    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 class GenericVars : IVars, IDisposable

    Constructors

    GenericVars()

    Declaration
    public GenericVars()

    Fields

    m_InputTensorsByLayer

    Declaration
    protected Dictionary<Layer, Tensor[]> m_InputTensorsByLayer
    Field Value
    Type Description
    Dictionary<Layer, Tensor[]>

    m_ModelTensors

    Declaration
    protected HashSet<Tensor> m_ModelTensors
    Field Value
    Type Description
    HashSet<Tensor>

    m_StringCache

    Declaration
    protected StringCache m_StringCache
    Field Value
    Type Description
    StringCache

    Methods

    Dispose()

    Declaration
    public virtual void Dispose()
    Implements
    IDisposable.Dispose()

    Finalize()

    Declaration
    protected void Finalize()

    GatherInputs(Layer)

    Declaration
    public virtual Tensor[] GatherInputs(Layer forLayer)
    Parameters
    Type Name Description
    Layer forLayer
    Returns
    Type Description
    Tensor[]
    Implements
    IVars.GatherInputs(Layer)

    GetAllocator()

    Declaration
    public virtual ITensorAllocator GetAllocator()
    Returns
    Type Description
    ITensorAllocator
    Implements
    IVars.GetAllocator()

    IsTensorOwnedByInternalAllocator(Tensor)

    Declaration
    protected virtual bool IsTensorOwnedByInternalAllocator(Tensor tensor)
    Parameters
    Type Name Description
    Tensor tensor
    Returns
    Type Description
    Boolean

    PeekConstants(String)

    Declaration
    public virtual Tensor[] PeekConstants(string layerName)
    Parameters
    Type Name Description
    String layerName
    Returns
    Type Description
    Tensor[]
    Implements
    IVars.PeekConstants(String)

    PeekOutput(String)

    Declaration
    public virtual Tensor PeekOutput(string name)
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    Tensor
    Implements
    IVars.PeekOutput(String)

    PrepareLayerInputTensors(Model, Layer, IOps)

    Declaration
    protected virtual Tensor[] PrepareLayerInputTensors(Model model, Layer layer, IOps ops)
    Parameters
    Type Name Description
    Model model
    Layer layer
    IOps ops
    Returns
    Type Description
    Tensor[]

    PrepareStorage(Layer)

    Declaration
    public virtual void PrepareStorage(Layer forLayer)
    Parameters
    Type Name Description
    Layer forLayer
    Implements
    IVars.PrepareStorage(Layer)

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

    Declaration
    public virtual void PrepareStorage(Model model, IOps ops, IDictionary<string, TensorShape> inputShapes)
    Parameters
    Type Name Description
    Model model
    IOps ops
    IDictionary<String, TensorShape> inputShapes
    Implements
    IVars.PrepareStorage(Model, IOps, IDictionary<String, TensorShape>)

    SetInput(String, Tensor)

    Declaration
    public virtual void SetInput(string name, Tensor x)
    Parameters
    Type Name Description
    String name
    Tensor x
    Implements
    IVars.SetInput(String, Tensor)

    Store(Layer, Tensor)

    Declaration
    public virtual void Store(Layer fromLayer, Tensor result)
    Parameters
    Type Name Description
    Layer fromLayer
    Tensor result
    Implements
    IVars.Store(Layer, Tensor)

    ValidateGlobalInputs(Model, IDictionary<String, TensorShape>)

    Declaration
    protected bool ValidateGlobalInputs(Model model, IDictionary<string, TensorShape> inputShapes)
    Parameters
    Type Name Description
    Model model
    IDictionary<String, TensorShape> inputShapes
    Returns
    Type Description
    Boolean
    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