2 writes to ModelStream
Microsoft.ML.OnnxTransformer (2)
OnnxUtils.cs (2)
252
ModelStream
= new FileStream(modelFile, FileMode.Open, FileAccess.Read, FileShare.Read, 4096, FileOptions.DeleteOnClose);
254
ModelStream
= new FileStream(modelFile, FileMode.Open, FileAccess.Read);
4 references to ModelStream
Microsoft.ML.OnnxTransformer (4)
OnnxTransform.cs (1)
424
ctx.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
"/>
480
ModelStream
.Dispose();