Skip to content

Commit 4d4f7dc

Browse files
Update OnnxRuntime to 1.16.3 (#6975)
* onnx update * formatting update * adding onnx runtime reference to automl tests
1 parent a1b7e1d commit 4d4f7dc

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<MicrosoftCodeAnalysisAnalyzersVersion>3.3.0</MicrosoftCodeAnalysisAnalyzersVersion>
4040
<MicrosoftCodeAnalysisCSharpVersion>3.9.0</MicrosoftCodeAnalysisCSharpVersion>
4141
<MicrosoftDotNetInteractiveVersion>1.0.0-beta.23509.3</MicrosoftDotNetInteractiveVersion>
42-
<MicrosoftMLOnnxRuntimeVersion>1.14.0</MicrosoftMLOnnxRuntimeVersion>
42+
<MicrosoftMLOnnxRuntimeVersion>1.16.3</MicrosoftMLOnnxRuntimeVersion>
4343
<MlNetMklDepsVersion>0.0.0.12</MlNetMklDepsVersion>
4444
<!--
4545
@("inteltbb.devel", "win", "2021.7.1.15305")

src/Microsoft.ML.OnnxTransformer/OnnxUtils.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,11 @@ private List<OnnxVariableInfo> GetOnnxVariablesFromMetadata(IReadOnlyDictionary<
299299
else
300300
{
301301
// No user-specified shape is found, so the shape loaded from ONNX model file is used.
302-
info = new OnnxVariableInfo(name, meta.Dimensions.ToList(), meta.ElementType, dataViewType, caster);
302+
// If its not a tensor then its a Sequence or Map, dimensions should be null and type is always NamedOnnxValue.
303+
if (!meta.IsTensor)
304+
info = new OnnxVariableInfo(name, null, typeof(NamedOnnxValue), dataViewType, caster);
305+
else
306+
info = new OnnxVariableInfo(name, meta.Dimensions.ToList(), meta.ElementType, dataViewType, caster);
303307
}
304308

305309
onnxVariableInfos.Add(info);

test/Microsoft.ML.AutoML.Tests/Microsoft.ML.AutoML.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<PackageReference Include="FluentAssertions" Version="$(FluentAssertionVersion)" />
2020
<PackageReference Include="SciSharp.TensorFlow.Redist" Version="$(TensorFlowVersion)" />
2121
<PackageReference Include="System.Text.Json" Version="$(SystemTextJsonVersion)" />
22+
<PackageReference Include="Microsoft.ML.OnnxRuntime" Version="$(MicrosoftMLOnnxRuntimeVersion)" />
2223
</ItemGroup>
2324

2425
<ItemGroup>

0 commit comments

Comments
 (0)