Skip to content

Commit 6210d67

Browse files
committed
Add AssemblyName to all model VersionInfo instances.
Also fix a couple more tests.
1 parent 622136a commit 6210d67

File tree

123 files changed

+330
-167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+330
-167
lines changed

src/Microsoft.ML.Api/SerializableLambdaTransform.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public static VersionInfo GetVersionInfo()
2929
verWrittenCur: 0x00010001,
3030
verReadableCur: 0x00010001,
3131
verWeCanReadBack: 0x00010001,
32-
loaderSignature: LoaderSignature);
32+
loaderSignature: LoaderSignature,
33+
loaderAssemblyName: typeof(SerializableLambdaTransform).Assembly.FullName);
3334
}
3435

3536
public const string LoaderSignature = "UserLambdaMapTransform";

src/Microsoft.ML.Data/DataLoadSave/Binary/BinaryLoader.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,8 @@ private static VersionInfo GetVersionInfo()
772772
verWrittenCur: 0x00010003, // Number of blocks to put in the shuffle pool
773773
verReadableCur: 0x00010003,
774774
verWeCanReadBack: 0x00010001,
775-
loaderSignature: LoaderSignature);
775+
loaderSignature: LoaderSignature,
776+
loaderAssemblyName: typeof(BinaryLoader).Assembly.FullName);
776777
}
777778

778779
private BinaryLoader(Arguments args, IHost host, Stream stream, bool leaveOpen)

src/Microsoft.ML.Data/DataLoadSave/CompositeDataLoader.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ private static VersionInfo GetVersionInfo()
7171
verWrittenCur: 0x00010002, // Added transform tags and args strings
7272
verReadableCur: 0x00010002,
7373
verWeCanReadBack: 0x00010001,
74-
loaderSignature: LoaderSignature);
74+
loaderSignature: LoaderSignature,
75+
loaderAssemblyName: typeof(CompositeDataLoader).Assembly.FullName);
7576
}
7677

7778
// The composition of loader plus transforms in order.

src/Microsoft.ML.Data/DataLoadSave/PartitionedFileLoader.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ private static VersionInfo GetVersionInfo()
6060
verWrittenCur: 0x00010001, // Initial
6161
verReadableCur: 0x00010001,
6262
verWeCanReadBack: 0x00010001,
63-
loaderSignature: LoadName);
63+
loaderSignature: LoadName,
64+
loaderAssemblyName: typeof(PartitionedFileLoader).Assembly.FullName);
6465
}
6566

6667
public class Arguments

src/Microsoft.ML.Data/DataLoadSave/PartitionedPathParser.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ private static VersionInfo GetVersionInfo()
9191
verWrittenCur: 0x00010001, // Initial
9292
verReadableCur: 0x00010001,
9393
verWeCanReadBack: 0x00010001,
94-
loaderSignature: LoadName);
94+
loaderSignature: LoadName,
95+
loaderAssemblyName: typeof(SimplePartitionedPathParser).Assembly.FullName);
9596
}
9697

9798
private IHost _host;
@@ -214,7 +215,8 @@ private static VersionInfo GetVersionInfo()
214215
verWrittenCur: 0x00010001, // Initial
215216
verReadableCur: 0x00010001,
216217
verWeCanReadBack: 0x00010001,
217-
loaderSignature: LoadName);
218+
loaderSignature: LoadName,
219+
loaderAssemblyName: typeof(ParquetPartitionedPathParser).Assembly.FullName);
218220
}
219221

220222
public ParquetPartitionedPathParser()

src/Microsoft.ML.Data/DataLoadSave/Text/TextLoader.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,8 @@ private static VersionInfo GetVersionInfo()
960960
verWrittenCur: 0x0001000B, // Header now retained if used and present
961961
verReadableCur: 0x0001000A,
962962
verWeCanReadBack: 0x00010009,
963-
loaderSignature: LoaderSignature);
963+
loaderSignature: LoaderSignature,
964+
loaderAssemblyName: typeof(TextLoader).Assembly.FullName);
964965
}
965966

966967
/// <summary>

src/Microsoft.ML.Data/DataLoadSave/TransformerChain.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ private static VersionInfo GetVersionInfo()
5555
verWrittenCur: 0x00010001, // Initial
5656
verReadableCur: 0x00010001,
5757
verWeCanReadBack: 0x00010001,
58-
loaderSignature: TransformerChain.LoaderSignature);
58+
loaderSignature: TransformerChain.LoaderSignature,
59+
loaderAssemblyName: typeof(TransformerChain<>).Assembly.FullName);
5960
}
6061

6162
/// <summary>

src/Microsoft.ML.Data/DataLoadSave/Transpose/TransposeLoader.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@ private static VersionInfo GetVersionInfo()
354354
verWrittenCur: 0x00010001, // Initial
355355
verReadableCur: 0x00010001,
356356
verWeCanReadBack: 0x00010001,
357-
loaderSignature: LoadName);
357+
loaderSignature: LoadName,
358+
loaderAssemblyName: typeof(TransposeLoader).Assembly.FullName);
358359
}
359360

360361
// We return the schema view's schema, because we don't necessarily want

src/Microsoft.ML.Data/DataView/RowToRowMapperTransform.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ private static VersionInfo GetVersionInfo()
241241
verWrittenCur: 0x00010001, // Initial
242242
verReadableCur: 0x00010001,
243243
verWeCanReadBack: 0x00010001,
244-
loaderSignature: LoaderSignature);
244+
loaderSignature: LoaderSignature,
245+
loaderAssemblyName: typeof(RowToRowMapperTransform).Assembly.FullName);
245246
}
246247

247248
public override ISchema Schema { get { return _bindings; } }

src/Microsoft.ML.Data/Depricated/Instances/HeaderSchema.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ private static VersionInfo GetVersionInfo()
222222
verWrittenCur: 0x00010001, // Initial
223223
verReadableCur: 0x00010001,
224224
verWeCanReadBack: 0x00010001,
225-
loaderSignature: LoaderSignature);
225+
loaderSignature: LoaderSignature,
226+
loaderAssemblyName: typeof(FeatureNameCollection).Assembly.FullName);
226227
}
227228

228229
public static void Save(ModelSaveContext ctx, ref VBuffer<DvText> names)

0 commit comments

Comments
 (0)