1 write to Stream
Microsoft.ML.Core (1)
Data\Repository.cs (1)
66
Stream
= stream;
17 references to Stream
Microsoft.ML.Core (17)
Data\ModelLoadContext.cs (1)
87
Reader = new BinaryReader(ent.
Stream
, Encoding.UTF8, leaveOpen: true);
Data\ModelLoading.cs (8)
93
env.Assert(ent.
Stream
.Position == 0);
103
env.Assert(ent.
Stream
.Position == 0);
104
LoadModel<TRes, TSig>(env, out result, ent.
Stream
, extra);
160
long fp = ent.
Stream
.Position;
169
Contracts.Assert(fp == ent.
Stream
.Position);
316
_ectx.Assert(ent.
Stream
.Position == 0);
337
using (var reader = new BinaryReader(ent.
Stream
, Encoding.UTF8, leaveOpen: true))
358
using (var reader = new StreamReader(ent.
Stream
))
Data\ModelSaveContext.cs (3)
100
Writer = new BinaryWriter(_ent.
Stream
, Encoding.UTF8, leaveOpen: true);
164
using (var writer = Utils.OpenWriter(ent.
Stream
))
180
using (var writer = new BinaryWriter(ent.
Stream
, Encoding.UTF8, leaveOpen: true))
Data\ModelSaving.cs (1)
50
using (var writer = new BinaryWriter(ent.
Stream
, Encoding.UTF8, leaveOpen: true))
Data\Repository.cs (4)
298
using (var writer = Utils.OpenWriter(ent.
Stream
))
344
_closed.Enqueue(new KeyValuePair<string, Stream>(ent.Path, ent.
Stream
));
346
ent.
Stream
.CloseEx();
555
ent.
Stream
.CloseEx();