@@ -56,15 +56,16 @@ internal interface IRowMapper : ICanSaveModel
5656 /// </summary>
5757 ITransformer GetTransformer ( ) ;
5858 }
59-
60- public delegate void SignatureLoadRowMapper ( ModelLoadContext ctx , Schema schema ) ;
59+ [ BestFriend ]
60+ internal delegate void SignatureLoadRowMapper ( ModelLoadContext ctx , Schema schema ) ;
6161
6262 /// <summary>
6363 /// This class is a transform that can add any number of output columns, that depend on any number of input columns.
6464 /// It does so with the help of an <see cref="IRowMapper"/>, that is given a schema in its constructor, and has methods
6565 /// to get the dependencies on input columns and the getters for the output columns, given an active set of output columns.
6666 /// </summary>
67- public sealed class RowToRowMapperTransform : RowToRowTransformBase , IRowToRowMapper ,
67+ [ BestFriend ]
68+ internal sealed class RowToRowMapperTransform : RowToRowTransformBase , IRowToRowMapper ,
6869 ITransformCanSaveOnnx , ITransformCanSavePfa , ITransformTemplate
6970 {
7071 private readonly IRowMapper _mapper ;
@@ -92,8 +93,7 @@ private static VersionInfo GetVersionInfo()
9293
9394 bool ICanSavePfa . CanSavePfa => _mapper is ICanSavePfa pfaMapper ? pfaMapper . CanSavePfa : false ;
9495
95- [ BestFriend ]
96- internal RowToRowMapperTransform ( IHostEnvironment env , IDataView input , IRowMapper mapper , Func < Schema , IRowMapper > mapperFactory )
96+ public RowToRowMapperTransform ( IHostEnvironment env , IDataView input , IRowMapper mapper , Func < Schema , IRowMapper > mapperFactory )
9797 : base ( env , RegistrationName , input )
9898 {
9999 Contracts . CheckValue ( mapper , nameof ( mapper ) ) ;
@@ -103,8 +103,7 @@ internal RowToRowMapperTransform(IHostEnvironment env, IDataView input, IRowMapp
103103 _bindings = new ColumnBindings ( input . Schema , mapper . GetOutputColumns ( ) ) ;
104104 }
105105
106- [ BestFriend ]
107- internal static Schema GetOutputSchema ( Schema inputSchema , IRowMapper mapper )
106+ public static Schema GetOutputSchema ( Schema inputSchema , IRowMapper mapper )
108107 {
109108 Contracts . CheckValue ( inputSchema , nameof ( inputSchema ) ) ;
110109 Contracts . CheckValue ( mapper , nameof ( mapper ) ) ;
0 commit comments