docs.unity3d.com
    Show / Hide Table of Contents

    Class ONNXModelImporter

    Asset Importer for Open Neural Network Exchange (ONNX) files. For more information about ONNX file format see: https://github.com/onnx/onnx

    Inheritance
    Object
    ONNXModelImporter
    Namespace: Unity.Barracuda
    Syntax
    public class ONNXModelImporter : ScriptedImporter

    Fields

    forceArbitraryBatchSize

    Fix batch size for ONNX models. Set via importer UI

    Declaration
    public bool forceArbitraryBatchSize
    Field Value
    Type Description
    Boolean

    optimizeModel

    Enable ONNX model optimization during import. Set via importer UI

    Declaration
    public bool optimizeModel
    Field Value
    Type Description
    Boolean

    treatErrorsAsWarnings

    Treat errors as warnings. Set via importer UI

    Declaration
    public bool treatErrorsAsWarnings
    Field Value
    Type Description
    Boolean

    Methods

    OnImportAsset(AssetImportContext)

    Scripted importer callback

    Declaration
    public override void OnImportAsset(AssetImportContext ctx)
    Parameters
    Type Name Description
    AssetImportContext ctx

    Asset import context

    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