9 references to CompareVec
Microsoft.ML.Core.Tests (1)
UnitTests\CoreBaseTestClass.cs (1)
79return TestCommon.CompareVec<T>(in v1, in v2, size, fn);
Microsoft.ML.TestFramework (6)
DataPipe\TestDataPipe.cs (5)
237Check(TestCommon.CompareVec(in v1, in v2, v1.Length, fn), "Mismatch"); 593if (!TestCommon.CompareVec(in bag1, in bag2, bag1.Length, (x1, x2) => x1 <= x2)) 635if (!TestCommon.CompareVec(in bag1, in bag2, bag1.Length, (x1, x2) => 2 * x1 == x2)) 787if (!TestCommon.CompareVec(in b1, in b2, b1.Length, (x1, x2) => 2 * x1 == x2)) 930TestCommon.CompareVec(in buffer, in expected[index++], buffer.GetValues().Length, (s1, s2) => s1.Span.SequenceEqual(s2.Span));
DataPipe\TestDataPipeBase.cs (1)
1028return TestCommon.CompareVec<T>(in v1, in v2, size, fn);
Microsoft.ML.TestFrameworkCommon (1)
TestCommon.cs (1)
264Assert.True(CompareVec(in names1, in names2, (int)size, (a, b) => a.Span.SequenceEqual(b.Span)), $"Different {kind} metadata values");
Microsoft.ML.Tests (1)
Transformers\CopyColumnEstimatorTests.cs (1)
156Assert.True(TestCommon.CompareVec(in names1, in names2, size, (a, b) => a.Span.SequenceEqual(b.Span)));