Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MacOs tutorial version error #1436

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<SourceDir>$(RepoRoot)src/</SourceDir>
<PkgDir>$(RepoRoot)pkg/</PkgDir>

<LibTorchPackageVersion>2.5.1.0</LibTorchPackageVersion>
<LibTorchPackageVersion Condition="'$(TargetOS)' == 'mac' and '$(TargetArchitecture)' == 'x64'">2.2.2.0</LibTorchPackageVersion>
<LibTorchPackageVersion>2.5.1</LibTorchPackageVersion>
<LibTorchPackageVersion Condition="'$(TargetOS)' == 'mac' and '$(TargetArchitecture)' == 'x64'">2.2.2</LibTorchPackageVersion>

<!-- when building on local machines the massive downloads get placed up one directory -->
<!-- so we can clean without triggering a re-download-->
Expand Down Expand Up @@ -86,8 +86,8 @@
<!-- use stable versions for libtorch packages based on LibTorch version number scheme-->
<!-- we manually update these -->
<PropertyGroup Condition="'$(MSBuildProjectName.IndexOf(`libtorch-`))' != '-1'">
<LibTorchPackageVersion>2.5.1.0</LibTorchPackageVersion>
<LibTorchPackageVersion Condition="'$(TargetOS)' == 'mac' and '$(TargetArchitecture)' == 'x64'">2.2.2.0</LibTorchPackageVersion>
<LibTorchPackageVersion>2.5.1</LibTorchPackageVersion>
<LibTorchPackageVersion Condition="'$(TargetOS)' == 'mac' and '$(TargetArchitecture)' == 'x64'">2.2.2</LibTorchPackageVersion>
<EnablePackageValidation>false</EnablePackageValidation>
<VersionPrefix>$(LibTorchPackageVersion)</VersionPrefix>
<VersionSuffix></VersionSuffix>
Expand Down
8 changes: 4 additions & 4 deletions src/TorchSharp/Torch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ namespace TorchSharp
{
public static partial class torch
{
#if LIBTORCH_2_2_2_0
const string libtorchPackageVersion = "2.2.2.0";
#elif LIBTORCH_2_5_1_0
const string libtorchPackageVersion = "2.5.1.0";
#if LIBTORCH_2_2_2
const string libtorchPackageVersion = "2.2.2";
#elif LIBTORCH_2_5_1
const string libtorchPackageVersion = "2.5.1";
#else
#error "Please update libtorchPackageVersion to match LibTorchPackageVersion"
#endif
Expand Down