public static void ApproximatelyEqual(TensorOld a, TensorOld b, double allowError = 0.00001) { Assert.True(TensorOld.CheckShapeBool(a, b)); var dataA = a.GetRawValues(); var dataB = b.GetRawValues(); for (int i = 0; i < a.ElementCount; i++) { Assert.True(Math.Abs(dataA[i] - dataB[i]) < allowError); } }