@@ -823,7 +823,7 @@ private BinaryLoader(Arguments args, IHost host, Stream stream, bool leaveOpen)
823
823
/// <param name="args">Arguments</param>
824
824
/// <param name="env">Host environment</param>
825
825
/// <param name="leaveOpen">Whether to leave the input stream open</param>
826
- public BinaryLoader ( IHostEnvironment env , Arguments args , Stream stream , bool leaveOpen = true )
826
+ internal BinaryLoader ( IHostEnvironment env , Arguments args , Stream stream , bool leaveOpen = true )
827
827
: this ( args , env . Register ( LoadName ) , stream , leaveOpen )
828
828
{
829
829
}
@@ -904,7 +904,7 @@ private BinaryLoader(IHost host, ModelLoadContext ctx, Stream stream)
904
904
}
905
905
}
906
906
907
- public static BinaryLoader Create ( IHostEnvironment env , ModelLoadContext ctx , IMultiStreamSource files )
907
+ private static BinaryLoader Create ( IHostEnvironment env , ModelLoadContext ctx , IMultiStreamSource files )
908
908
{
909
909
Contracts . CheckValue ( env , nameof ( env ) ) ;
910
910
IHost h = env . Register ( LoadName ) ;
@@ -940,7 +940,7 @@ public static BinaryLoader Create(IHostEnvironment env, ModelLoadContext ctx, IM
940
940
/// Creates a binary loader from a stream that is not owned by the loader.
941
941
/// This creates its own independent copy of input stream for the binary loader.
942
942
/// </summary>
943
- public static BinaryLoader Create ( IHostEnvironment env , ModelLoadContext ctx , Stream stream )
943
+ private static BinaryLoader Create ( IHostEnvironment env , ModelLoadContext ctx , Stream stream )
944
944
{
945
945
Contracts . CheckValue ( env , nameof ( env ) ) ;
946
946
IHost h = env . Register ( LoadName ) ;
0 commit comments