docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IVars

    Interfaces for variables

    Inherited Members
    IDisposable.Dispose()
    Namespace: Unity.Barracuda
    Assembly: solution.dll
    Syntax
    public interface IVars : IDisposable

    Methods

    DisposeAfterLayer(Layer)

    Dispose storage that can be deleted after layer

    Declaration
    void DisposeAfterLayer(Layer forLayer)
    Parameters
    Type Name Description
    Layer forLayer

    layer

    GatherInputs(Layer)

    Gather layer inputs

    Declaration
    Tensor[] GatherInputs(Layer forLayer)
    Parameters
    Type Name Description
    Layer forLayer

    layer

    Returns
    Type Description
    Tensor[]

    all input tensors

    GetAllocator()

    Get allocator

    Declaration
    ITensorAllocator GetAllocator()
    Returns
    Type Description
    ITensorAllocator

    current ITensorAllocator

    PeekConstants(string)

    Peek constants

    Declaration
    Tensor[] PeekConstants(string layerName)
    Parameters
    Type Name Description
    string layerName

    layer name

    Returns
    Type Description
    Tensor[]

    Tensor array

    PeekOutput(string)

    Peek output

    Declaration
    Tensor PeekOutput(string name)
    Parameters
    Type Name Description
    string name

    name

    Returns
    Type Description
    Tensor

    Tensor

    PrepareStorage(Layer)

    Prepare storage for layer

    Declaration
    void PrepareStorage(Layer forLayer)
    Parameters
    Type Name Description
    Layer forLayer

    layer

    PrepareStorage(Model, IOps, IDictionary<string, TensorShape>, bool, DataType)

    Prepare storage

    Declaration
    void PrepareStorage(Model model, IOps optionalOpsToPrepareTensors = null, IDictionary<string, TensorShape> optionalInputShapes = null, bool takeoverWeights = false, DataType dataType = DataType.Float)
    Parameters
    Type Name Description
    Model model

    model

    IOps optionalOpsToPrepareTensors

    IOps to prepare tensors

    IDictionary<string, TensorShape> optionalInputShapes

    input shapes dictionary

    bool takeoverWeights

    takeoverWeights flag

    DataType dataType

    expect activation data type

    SetInput(string, Tensor)

    Set input

    Declaration
    void SetInput(string name, Tensor x)
    Parameters
    Type Name Description
    string name

    name

    Tensor x

    input

    Store(Layer, Tensor)

    Store result for layer

    Declaration
    void Store(Layer fromLayer, Tensor result)
    Parameters
    Type Name Description
    Layer fromLayer

    layer

    Tensor result

    Tensor to store

    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)