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