File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tests/AiDotNet.Tests/UnitTests/MixedPrecision Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,10 @@ public void UnscaleGradients_Tensor_CorrectlyUnscalesAllElements()
9898 scaler . UnscaleGradients ( gradients ) ;
9999
100100 // Assert
101- Assert . Equal ( 1.0f , gradients . _data [ 0 ] , precision : 5 ) ;
102- Assert . Equal ( 2.0f , gradients . _data [ 1 ] , precision : 5 ) ;
103- Assert . Equal ( 3.0f , gradients . _data [ 2 ] , precision : 5 ) ;
104- Assert . Equal ( 4.0f , gradients . _data [ 3 ] , precision : 5 ) ;
101+ Assert . Equal ( 1.0f , gradients . GetFlatIndexValue ( 0 ) , precision : 5 ) ;
102+ Assert . Equal ( 2.0f , gradients . GetFlatIndexValue ( 1 ) , precision : 5 ) ;
103+ Assert . Equal ( 3.0f , gradients . GetFlatIndexValue ( 2 ) , precision : 5 ) ;
104+ Assert . Equal ( 4.0f , gradients . GetFlatIndexValue ( 3 ) , precision : 5 ) ;
105105 }
106106
107107 [ Fact ]
You can’t perform that action at this time.
0 commit comments