Class ONNXModelImporter
Asset Importer for Open Neural Network Exchange (ONNX) files. For more information about ONNX file format see: https://github.com/onnx/onnx
Inherited Members
UnityEditor.AssetImporter.AddRemap(UnityEditor.AssetImporter.SourceAssetIdentifier, UnityEngine.Object)
UnityEditor.AssetImporter.RemoveRemap(UnityEditor.AssetImporter.SourceAssetIdentifier)
UnityEditor.AssetImporter.assetTimeStamp
Namespace: Unity.Barracuda
Syntax
[ScriptedImporter(34, new string[]{"onnx"})]
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 |