2 writes to ModelStream
Microsoft.ML.OnnxTransformer (2)
OnnxUtils.cs (2)
252ModelStream = new FileStream(modelFile, FileMode.Open, FileAccess.Read, FileShare.Read, 4096, FileOptions.DeleteOnClose); 254ModelStream = new FileStream(modelFile, FileMode.Open, FileAccess.Read);
4 references to ModelStream
Microsoft.ML.OnnxTransformer (4)
OnnxTransform.cs (1)
424ctx.SaveBinaryStream("OnnxModel", w => { w.WriteByteArray(File.ReadAllBytes(Model.ModelStream.Name)); });
OnnxUtils.cs (3)
455/// Flag used to indicate if the unmanaged resources (aka the model file handle <see cref="ModelStream"/> 467/// There are two unmanaged resources we can dispose, <see cref="_session"/> and <see cref="ModelStream"/> 480ModelStream.Dispose();