Skip to content

Commit 0cb6b39

Browse files
author
Глеб Брыкин
authored
Update load_model.cs
1 parent 251afb2 commit 0cb6b39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Implementation/src/torchvision/models/load_model.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static models()
2222

2323
internal static Dictionary<string, torch.Tensor> __load_model(string path, string fname, string url, bool print = true)
2424
{
25-
if(File.Exists(path))
25+
if(File.Exists(path + fname))
2626
{
2727
return (Dictionary<string, torch.Tensor>)torch.load(path);
2828
}
@@ -43,4 +43,4 @@ static models()
4343

4444
}
4545

46-
}
46+
}

0 commit comments

Comments
 (0)