Skip to content

Commit

Permalink
Update TestTorchTensor.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
yueyinqiu committed Dec 3, 2024
1 parent 0d82897 commit 26904d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/TorchSharpTest/TestTorchTensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ public void Test3DToJuliaString()
0.01f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f,
}, 2, 2, 4);
var str = t.jlstr("0.0000000", cultureInfo: CultureInfo.InvariantCulture);
Assert.Equal($"[2x2x4], type = Float32, device = cpu\n[0,..,..] =\n 0.0000000 3.1410000 6.2834000 3.1415200\n" +
Assert.Equal(($"[2x2x4], type = Float32, device = cpu\n[0,..,..] =\n 0.0000000 3.1410000 6.2834000 3.1415200\n" +
$" 0.0000063 -13.1415300 0.0100000 4713.1400000\n\n[1,..,..] =\n 0.0100000 0.0000000 0.0000000 0.0000000\n" +
$" 0.0000000 0.0000000 0.0000000 0.0000000\n".Replace("\n", Environment.NewLine),
$" 0.0000000 0.0000000 0.0000000 0.0000000\n").Replace("\n", Environment.NewLine),
str);
}
}
Expand Down

0 comments on commit 26904d7

Please sign in to comment.