docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX
    on Friday, May 14, 2021