Skip to content

Commit e1dacec

Browse files
Update src/TorchSharp/Torch.cs
Co-authored-by: Jiri Cincura ↹ <jiri@cincura.net>
1 parent a17c25e commit e1dacec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TorchSharp/Torch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private static void LoadNativeBackend(bool useCudaBackend, out StringBuilder? tr
187187
// inter-DLL dependencies can be resolved by the OS loader.
188188
//
189189
// TODO: on linux make these copies link not shadow-copy
190-
var torchsharpLoc = Path.GetDirectoryName(typeof(torch).Assembly.Location);
190+
var torchsharpLoc = Path.GetDirectoryName(typeof(torch).Assembly.Location)!;
191191

192192
// Try to find the NuGet global packages folder
193193
string? packagesDir = null;

0 commit comments

Comments
 (0)