From ca89dbaae70478820130ba79834e4beba41d46c0 Mon Sep 17 00:00:00 2001 From: ds5678 <49847914+ds5678@users.noreply.github.com> Date: Tue, 27 Jan 2026 20:42:01 -0800 Subject: [PATCH] Fix a typo in TestTorchTensor.cs --- test/TorchSharpTest/TestTorchTensor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/TorchSharpTest/TestTorchTensor.cs b/test/TorchSharpTest/TestTorchTensor.cs index 69ba732f3..badd42131 100644 --- a/test/TorchSharpTest/TestTorchTensor.cs +++ b/test/TorchSharpTest/TestTorchTensor.cs @@ -3783,7 +3783,7 @@ public void IndexEllipsis() public void IndexNull() { using var i = torch.tensor(new long[] { 0, 1, 2, 6, 5, 4 }, new long[] { 2, 3 }); - var t1 = i.index(new TensorIndex[] { TensorIndex.None, TensorIndex.Single(0) }); + var t1 = i.index(new TensorIndex[] { TensorIndex.Null, TensorIndex.Single(0) }); Assert.Equal(0, t1[0, 0].ToInt32()); Assert.Equal(1, t1[0, 1].ToInt32()); Assert.Equal(2, t1[0, 2].ToInt32());