docs.unity3d.com
    Show / Hide Table of Contents

    Interface IVars

    An interface that provides methods for storing variables.

    Inherited Members
    IDisposable.Dispose()
    Namespace: Unity.Sentis
    Syntax
    public interface IVars : IDisposable

    Methods

    DisposeAfterLayer(Layer)

    Disposes storage that can be deleted after executing a given layer.

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

    GatherInputs(Layer)

    Gathers the input tensors for a given layer.

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

    GetAllocator()

    Returns the current allocator.

    Declaration
    ITensorAllocator GetAllocator()
    Returns
    Type Description
    ITensorAllocator

    PeekOutput(String)

    Peeks the output tensor of a given name.

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

    PrepareStorage(Layer)

    Prepares storage for a given layer.

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

    PrepareStorage(Model, IBackend, IDictionary<String, TensorShape>, Boolean)

    Prepares storage for a given model.

    Declaration
    void PrepareStorage(Model model, IBackend optionalBackendToPrepareTensors = null, IDictionary<string, TensorShape> optionalInputShapes = null, bool takeoverWeights = false)
    Parameters
    Type Name Description
    Model model
    IBackend optionalBackendToPrepareTensors
    IDictionary<String, TensorShape> optionalInputShapes
    Boolean takeoverWeights

    SetInput(String, Tensor)

    Sets a given input with a tensor.

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

    Store(String, Tensor)

    Stores the result of execution for a given tensor name.

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

    Store(Layer, Tensor)

    Stores the result of execution for a given layer.

    Declaration
    void Store(Layer fromLayer, Tensor result)
    Parameters
    Type Name Description
    Layer fromLayer
    Tensor result
    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