Class ONNXModelImporter
Asset Importer for Open Neural Network Exchange (ONNX) files. For more information about ONNX file format see: https://github.com/onnx/onnx
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 |