docs.unity3d.com
Search Results for

    Show / Hide Table of Contents
    Note

    Sentis is now called Inference Engine. The documentation has moved to https://docs.unity3d.com/Packages/com.unity.ai.inference@latest. Refer to the new location for the latest updates and guidance. Make sure to update your bookmarks and references accordingly.

    Model Asset Import Settings

    The Model Asset Import Settings window lets you do the following:

    • Serialize the model to the StreamingAssets folder.
    • Check the properties of an imported and optimized model.

    To access this window, select an imported model asset in the Project window.

    Imported Object settings

    Inputs

    The table below shows both the total count of inputs that the model possesses and provides a list detailing these inputs.

    Property Description
    name The name of the input.
    index The index of the input.
    shape The tensor shape of the input. For example (1, 1, 28, 28) means the model accepts a tensor of size 1 × 1 × 28 × 28 exactly. If a dimension in the shape is a string instead of a number, for example ?, d0 or d1, the dimension can be any size (a dynamic input). Refer to Model inputs for more information about dynamic inputs.
    dataType The data type of the input.

    Outputs

    The table below shows both the total count of outputs that the model possesses and provides a list detailing these outputs.

    Property Description
    name The name of the output.
    index The index of the output.
    shape The tensor shape of the output. Sentis tries to precalculate this shape from the model. If a dimension in the shape is a question mark (?), Sentis can't calculate the size of the dimension, or the size depends on the input (a dynamic output). If the entire tensor shape is Unknown, Sentis can't calculate the number of dimensions, or the number of dimensions is dynamic.
    dataType The data type of the output.

    Layers

    The table below shows the overall count of layers the model possesses along with a list of layers detailing the order in which Sentis executes them.

    Property Description
    type The type of layer. Refer to Supported ONNX operators for more information.
    index The index of the layer.
    inputs The names of the inputs to the layer. Possible values are a model input from the Inputs section, another layer, or a constant.
    properties The properties of the layer. The properties will depend on the type of layer. Refer to Supported ONNX operators for more information.

    Constants

    The table below shows the total count of constants and weights that the model possesses along with a list detailing the constants.

    Property Description
    type The type is always Constant.
    index The index of the constant.
    weights The tensor shape of the constant. If the tensor shape is empty - () - the constant is a scalar (a zero-dimensional tensor).

    Model information

    This section shows the model's total size, the ONNX opset version, and the tool used to create the model file.

    Additional resources

    • Import a model
    • How Sentis optimizes a model
    • Supported ONNX operators
    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)