Skip to content

Commit 5fde452

Browse files
2.4.0 testing (#22)
* Ejhg osx arm64 lib fix (#21) * Increase libtorch version to 2.4.0 and use libtorch for osx-arm64 - libtorch requires libomp.dylib, but it is only included with libtorch 2.4.0 and above - compiling osx-arm64 against libtorch-macos-arm64 instead of conda py3.10 libraries source significantly improves performance (~6X on M2 Macbook Air) * Clean up references to unused conda LibTorchArchiveSource conditions * Update SHA hashes for libtorch 2.4.0 on Windows and Linux * Update distribution filenames * Set BuildLibTorchPackages to true to build artifacts in CI * Pin mac-x64 target against latest libtorch 2.2.2 * Specify TargetOS to fix failing CI build * Revert "Specify TargetOS to fix failing CI build" This reverts commit bf723f5. * Specify TargetOS to fix failing CI build for mac-x64 --------- Co-authored-by: Eugenio De Hoyos <[email protected]> * Starting upgrade to 2.4.0 * Disable MacOS ARM64 builds * Fixed CI/CD script --------- Co-authored-by: Eugenio De Hoyos <[email protected]>
1 parent a926e17 commit 5fde452

27 files changed

+212
-173
lines changed

DEVGUIDE.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Build with
5252

5353
## Packages
5454

55-
An ephemeral feed of packages from Azure DevOps CI is available for those
55+
An ephemeral feed of packages from Azure DevOps CI is available for those
5656

5757
* View link: https://dotnet.visualstudio.com/TorchSharp/_packaging?_a=feed&feed=SignedPackages
5858
* Nuget feed: https://dotnet.pkgs.visualstudio.com/TorchSharp/_packaging/SignedPackages/nuget/v3/index.json
@@ -77,7 +77,7 @@ To change the TorchSharp package version update this [file](https://github.com/d
7777
The TorchSharp package is pushed to nuget.org via Azure DevOps CI release pipeline. Assuming you're not building or updating the LibTorch packages
7878
(`BuildLibTorchPackages` is `false` in [azure-pipelines.yml](azure-pipelines.yml)) this is pretty simple once you have the permissions:
7979

80-
1. Update the version number in [./build/BranchInfo.props](./build/BranchInfo.props) and in the [Release Notes](./RELEASENOTES.md) file and then submit a PR.
80+
1. Update the version number in [./build/BranchInfo.props](./build/BranchInfo.props) and in the [Release Notes](./RELEASENOTES.md) file and then submit a PR.
8181

8282
Updating the major or minor version number should only be done after a discussion with repo admins. The patch number should be incremented by one each release and set to zero after a change to the major or minor version.
8383
2. Integrate code to main and wait for CI to process
@@ -149,7 +149,7 @@ For this reason, we do the following
149149
This project grabs LibTorch and makes a C API wrapper for it, then calls these from C#. When updating to a newer
150150
version of PyTorch then quite a lot of careful work needs to be done.
151151

152-
0. Make sure you have plenty of disk space, e.g. 15GB.
152+
0. Make sure you have plenty of disk space, e.g. 15GB.
153153

154154
1. Clean and reset to main
155155

@@ -163,7 +163,7 @@ version of PyTorch then quite a lot of careful work needs to be done.
163163
https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.2.0%2Bcpu.zip
164164

165165
Don't download anything yet, or manually. The downloads are acquired automatically in step 2.
166-
166+
167167
To update the version, update this in [Dependencies.props](build/Dependencies.props):
168168

169169
<LibTorchVersion>2.2.0</LibTorchVersion>
@@ -179,8 +179,8 @@ version of PyTorch then quite a lot of careful work needs to be done.
179179
On Windows:
180180

181181
dotnet build src\Redist\libtorch-cpu\libtorch-cpu.proj /p:UpdateSHA=true /p:TargetOS=linux /p:Configuration=Release /t:Build /p:IncludeLibTorchCpuPackages=true
182-
dotnet build src\Redist\libtorch-cpu\libtorch-cpu.proj /p:UpdateSHA=true /p:TargetOS=mac /p:Configuration=Release /t:Build /p:IncludeLibTorchCpuPackages=true
183-
dotnet build src\Redist\libtorch-cpu\libtorch-cpu.proj /p:UpdateSHA=true /p:TargetOS=windows /p:Configuration=Release /t:Build /p:IncludeLibTorchCpuPackages=true
182+
dotnet build src\Redist\libtorch-cpu\libtorch-cpu.proj /p:UpdateSHA=true /p:TargetOS=mac /p:TargetArchitecture=arm64 /p:Configuration=Release /t:Build /p:IncludeLibTorchCpuPackages=true
183+
dotnet build src\Redist\libtorch-cpu\libtorch-cpu.proj /p:UpdateSHA=true /p:TargetOS=windows /p:Configuration=Release /t:Build /p:IncludeLibTorchCpuPackages=true
184184
dotnet build src\Redist\libtorch-cpu\libtorch-cpu.proj /p:UpdateSHA=true /p:TargetOS=windows /p:Configuration=Debug /t:Build /p:IncludeLibTorchCpuPackages=true
185185

186186
dotnet build src\Redist\libtorch-cuda-12.1\libtorch-cuda-12.1.proj /p:UpdateSHA=true /p:TargetOS=linux /p:Configuration=Release /t:Build /p:IncludeLibTorchCudaPackages=true
@@ -190,8 +190,8 @@ On Windows:
190190
On Linux / Mac:
191191

192192
dotnet build src/Redist/libtorch-cpu/libtorch-cpu.proj /p:UpdateSHA=true /p:TargetOS=linux /p:Configuration=Release /t:Build /p:IncludeLibTorchCpuPackages=true
193-
dotnet build src/Redist/libtorch-cpu/libtorch-cpu.proj /p:UpdateSHA=true /p:TargetOS=mac /p:Configuration=Release /t:Build /p:IncludeLibTorchCpuPackages=true
194-
dotnet build src/Redist/libtorch-cpu/libtorch-cpu.proj /p:UpdateSHA=true /p:TargetOS=windows /p:Configuration=Release /t:Build /p:IncludeLibTorchCpuPackages=true
193+
dotnet build src/Redist/libtorch-cpu/libtorch-cpu.proj /p:UpdateSHA=true /p:TargetOS=mac /p:TargetArchitecture=arm64 /p:Configuration=Release /t:Build /p:IncludeLibTorchCpuPackages=true
194+
dotnet build src/Redist/libtorch-cpu/libtorch-cpu.proj /p:UpdateSHA=true /p:TargetOS=windows /p:Configuration=Release /t:Build /p:IncludeLibTorchCpuPackages=true
195195
dotnet build src/Redist/libtorch-cpu/libtorch-cpu.proj /p:UpdateSHA=true /p:TargetOS=windows /p:Configuration=Debug /t:Build /p:IncludeLibTorchCpuPackages=true
196196

197197
dotnet build src/Redist/libtorch-cuda-12.1/libtorch-cuda-12.1.proj /p:UpdateSHA=true /p:TargetOS=linux /p:Configuration=Release /t:Build /p:IncludeLibTorchCudaPackages=true
@@ -213,7 +213,7 @@ On Linux / Mac:
213213
dir bin\obj\x64.Release\libtorch-cpu\libtorch-cxx11-abi-shared-with-deps-2.2.0cpu\libtorch\lib\*.so*
214214

215215
You may also need to precisely refactor the binaries into multiple parts so each package ends up under ~300MB. Before release 2.2.0 of libtorch, this really only affected the CUDA packagages, but it is now also affecting the CPU packages on Linux and OSX. Windows CPU is still small enough to be contained in just one package. The NuGet gallery does not allow packages larger than 250MB, so if files are 300MB, after compression, they are likely to be smaller than 250MB. However, you have to look out: if the compression is poor, then packages may end up larger. Note that it is 250 million
216-
bytes that is the limit, **not** 250*1024*1024. In other words, it is 250 MB, not 250 MiB. Note that Windows Explorer will show file sizes in KiB, not thousands of bytes. Use 'dir' from a CMD window to get the exact size in bytes for each file. For example -- the file `libtorch_cpu.so` shows up as 511,872 KB in Windows Explorer, but 524,156,144 bytes in CMD. The 2.4% difference can be significant. Getting the partitioning right requires precision.
216+
bytes that is the limit, **not** 250*1024*1024. In other words, it is 250 MB, not 250 MiB. Note that Windows Explorer will show file sizes in KiB, not thousands of bytes. Use 'dir' from a CMD window to get the exact size in bytes for each file. For example -- the file `libtorch_cpu.so` shows up as 511,872 KB in Windows Explorer, but 524,156,144 bytes in CMD. The 2.4% difference can be significant. Getting the partitioning right requires precision.
217217

218218
If the combined size of the files going into a part is smaller than 250MB, then everything is fine, and there is no need to split the part. It can be singular. If that is not the case, then the part should be fragmented into two or more parts that are linked together by their names.
219219

@@ -229,12 +229,12 @@ On Linux / Mac:
229229
They must all be called either 'primary,' which should be the first fragment, or 'fragmentN' where 'N' is the ordinal number of the fragment, starting with '1'. The current logic allows for as many as 10 non-primary fragments. If more are needed, the code in [FileRestitcher.cs](pkg/FileRestitcher/FileRestitcher/FileRestitcher.cs) and [RestitchPackage.targets](pkg/common/RestitchPackage.targets) needs to be updated. Note that the size of each fragment is expressed in bytes, and that fragment start must be
230230
the sum of the size of all previous fragments. A '-1' should be used for the last fragment (and only for the last fragment): it means that the fragment size will be based on how much there is still left of the file.
231231

232-
Each part, whether singular or fragmented, should have its own .nupkgproj file in its own folder under pkg. The folder and file should have the same name as the part. If you need to add new fragments, it is straightforward to just copy an existing fragment folder and rename it as well as the project file to the new fragment.
233-
232+
Each part, whether singular or fragmented, should have its own .nupkgproj file in its own folder under pkg. The folder and file should have the same name as the part. If you need to add new fragments, it is straightforward to just copy an existing fragment folder and rename it as well as the project file to the new fragment.
233+
234234
__Important:__
235235

236-
If you must fragment a previously singular part, it is best to rename the existing folder and file to '-fragment1' and then copy a '-primary' folder and rename with the right part name. This is because the primary .nupkgproj files look different from others.
237-
236+
If you must fragment a previously singular part, it is best to rename the existing folder and file to '-fragment1' and then copy a '-primary' folder and rename with the right part name. This is because the primary .nupkgproj files look different from others.
237+
238238
Specifically, they include different build targets:
239239

240240
```xml
@@ -295,8 +295,8 @@ On Linux / Mac:
295295

296296
<LibTorchPackageVersion>2.0.1.1</LibTorchPackageVersion>
297297

298-
dotnet pack -c Release -v:n /p:SkipNative=true /p:SkipTests=true /p:IncludeTorchSharpPackage=true /p:IncludeLibTorchCpuPackages=true /p:IncludeLibTorchCudaPackages=true
299-
dotnet pack -c Release -v:n /p:SkipNative=true /p:SkipTests=true /p:TargetOS=linux /p:IncludeTorchSharpPackage=true /p:IncludeLibTorchCpuPackages=true /p:IncludeLibTorchCudaPackages=true
298+
dotnet pack -c Release -v:n /p:SkipNative=true /p:SkipTests=true /p:IncludeTorchSharpPackage=true /p:IncludeLibTorchCpuPackages=true /p:IncludeLibTorchCudaPackages=true
299+
dotnet pack -c Release -v:n /p:SkipNative=true /p:SkipTests=true /p:TargetOS=linux /p:IncludeTorchSharpPackage=true /p:IncludeLibTorchCpuPackages=true /p:IncludeLibTorchCudaPackages=true
300300

301301
Once these finish, the output can be found in `bin\packages\Release`. Look at the file sizes -- if anything is larger than 250,000,000 bytes, you need to go back to #3 above and redefine the package contents and fragmentation scheme. It maybe necessary to introduce new fragments.
302302

Directory.Build.props

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
<SourceDir>$(RepoRoot)src/</SourceDir>
2121
<PkgDir>$(RepoRoot)pkg/</PkgDir>
2222

23-
<LibTorchPackageVersion>2.2.1.1</LibTorchPackageVersion>
23+
<LibTorchPackageVersion>2.4.0.0</LibTorchPackageVersion>
24+
<LibTorchPackageVersion Condition="'$(TargetOS)' == 'mac' and '$(TargetArchitecture)' == 'x64'">2.2.2.0</LibTorchPackageVersion>
2425

2526
<!-- when building on local machines the massive downloads get placed up one directory -->
2627
<!-- so we can clean without triggering a re-download-->
@@ -86,7 +87,8 @@
8687
<!-- use stable versions for libtorch packages based on LibTorch version number scheme-->
8788
<!-- we manually update these -->
8889
<PropertyGroup Condition="'$(MSBuildProjectName.IndexOf(`libtorch-`))' != '-1'">
89-
<LibTorchPackageVersion>2.2.1.1</LibTorchPackageVersion>
90+
<LibTorchPackageVersion>2.4.0.0</LibTorchPackageVersion>
91+
<LibTorchPackageVersion Condition="'$(TargetOS)' == 'mac' and '$(TargetArchitecture)' == 'x64'">2.2.2.0</LibTorchPackageVersion>
9092
<EnablePackageValidation>false</EnablePackageValidation>
9193
<VersionPrefix>$(LibTorchPackageVersion)</VersionPrefix>
9294
<VersionSuffix></VersionSuffix>
@@ -135,17 +137,14 @@
135137

136138
<PropertyGroup>
137139
<LibTorchArchiveSource>pytorch</LibTorchArchiveSource>
138-
<LibTorchArchiveSource Condition="'$(TargetPlatform)' == 'mac-arm64'">conda</LibTorchArchiveSource>
139-
<CondaArchivePlatformName Condition="'$(TargetPlatform)' == 'mac-arm64'">osx-arm64</CondaArchivePlatformName>
140140
<LibTorchCpuArchiveNameSuffix Condition="'$(TargetOS)' != 'mac'">%252Bcpu</LibTorchCpuArchiveNameSuffix>
141-
<LibTorchCpuArchiveNameSuffix Condition="'$(LibTorchArchiveSource)' == 'conda'">-py3.10_0</LibTorchCpuArchiveNameSuffix>
142141
<LibTorchCudaArchiveNameSuffix>%252Bcu$(CudaVersionNoDot)</LibTorchCudaArchiveNameSuffix>
143142
<LibTorchCpuLocalNameSuffix>cpu</LibTorchCpuLocalNameSuffix>
144143
<LibTorchCudaLocalNameSuffix>cu$(CudaVersionNoDot)</LibTorchCudaLocalNameSuffix>
145144
<LibTorchArchiveCoreName Condition="'$(TargetOS)' == 'windows'">libtorch-win-shared-with-deps$(LibTorchDebug)</LibTorchArchiveCoreName>
146145
<LibTorchArchiveCoreName Condition="'$(TargetOS)' == 'linux'">libtorch-cxx11-abi-shared-with-deps</LibTorchArchiveCoreName>
147146
<LibTorchArchiveCoreName Condition="'$(TargetOS)' == 'mac'">libtorch-macos-x86_64</LibTorchArchiveCoreName>
148-
<LibTorchArchiveCoreName Condition="'$(LibTorchArchiveSource)' == 'conda'">pytorch</LibTorchArchiveCoreName>
147+
<LibTorchArchiveCoreName Condition="'$(TargetPlatform)' == 'mac-arm64'">libtorch-macos-arm64</LibTorchArchiveCoreName>
149148
<LibTorchCpuArchiveBase>$(LibTorchArchiveCoreName)-$(LibTorchVersion)$(LibTorchCpuArchiveNameSuffix)</LibTorchCpuArchiveBase>
150149
<LibTorchCudaArchiveBase>$(LibTorchArchiveCoreName)-$(LibTorchVersion)$(LibTorchCudaArchiveNameSuffix)</LibTorchCudaArchiveBase>
151150
<LibTorchCpuLocalBase>$(LibTorchArchiveCoreName)-$(LibTorchVersion)$(LibTorchCpuLocalNameSuffix)</LibTorchCpuLocalBase>

Directory.Build.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,14 @@
8181
<!-- Mac arm64 libtorch binary list used for examples and testing -->
8282
<ItemGroup Condition="'$(NativeTargetArchitecture)' == 'arm64'and $([MSBuild]::IsOSPlatform('osx')) and '$(TestUsesLibTorch)' == 'true' and '$(SkipNative)' != 'true' ">
8383
<NativeAssemblyReference Include="c10" />
84+
<NativeAssemblyReference Include="fbjni" />
85+
<NativeAssemblyReference Include="omp" />
86+
<NativeAssemblyReference Include="pytorch_jni" />
8487
<NativeAssemblyReference Include="shm" />
8588
<NativeAssemblyReference Include="torch" />
8689
<NativeAssemblyReference Include="torch_cpu" />
8790
<NativeAssemblyReference Include="torch_global_deps" />
91+
<NativeAssemblyReference Include="torch_python" />
8892
</ItemGroup>
8993

9094
<!-- Linux CPU libtorch binary list used for examples and testing -->

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
<br/>
1212
Please check the [Release Notes](RELEASENOTES.md) file for news on what's been updated in each new release.
1313

14-
__TorchSharp is now in the .NET Foundation!__
1514

16-
If you are using TorchSharp from NuGet, you should be using a version >= 0.98.3 of TorchSharp, and >= 1.12.0 of the libtorch-xxx redistributable packages. We recommend using one of the 'bundled' packages: TorchSharp-cpu, TorchSharp-cuda-windows, or TorchSharp-cuda-linux. They will pull in the right LibTorch backends.
15+
__TorchSharp no longer supports MacOS on Intel hardware.__
16+
17+
With libtorch release 2.4.0, Intel HW support was deprecated for libtorch. This means that the last version of TorchSharp to work on Intel Macintosh hardware is 0.102.8. Starting with 0.103.0, only Macs based on Apple Silicon are supported.
1718

1819
__TorchSharp examples has their own home!__
1920

RELEASENOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Releases, starting with 9/2/2021, are listed with the most recent release at the top.
44

5+
# NuGet Version 0.103.0
6+
7+
Move to libtorch 2.4.0.
8+
59
# NuGet Version 0.102.8
610

711
__Bug Fixes__:

azure-pipelines.yml

Lines changed: 1 addition & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ parameters:
99
# push them to the artifacts feed of the Azure CI project
1010
- name: BuildLibTorchPackages
1111
type: boolean
12-
default: false
12+
default: true
1313
- name: PushPackagesToFeed
1414
type: boolean
1515
default: false
@@ -74,15 +74,6 @@ jobs:
7474
pool:
7575
vmImage: 'windows-latest'
7676

77-
- template: /build/ci/job-template.yml
78-
parameters:
79-
prepScript: echo "no prep needed"
80-
name: MacOS_x64
81-
buildScript: dotnet build /p:SkipCuda=true /p:TargetArchitecture=x64 -c
82-
testScript: dotnet test --blame /p:SkipCuda=true --blame test/TorchSharpTest/TorchSharpTest.csproj -c
83-
pool:
84-
vmImage: 'macos-latest'
85-
8677
- template: /build/ci/job-template.yml
8778
parameters:
8879
prepScript: echo "no prep needed"
@@ -183,35 +174,6 @@ jobs:
183174
- publish: $(Build.SourcesDirectory)/bin/obj/packprep/$(BuildConfig)
184175
artifact: WindowsAssets
185176

186-
# ################################################################################
187-
- job: MacOS_x64_Native_Build_For_Packages
188-
# ################################################################################
189-
condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'))
190-
variables:
191-
BuildConfig: Release
192-
OfficialBuildId: $(BUILD.BUILDNUMBER)
193-
DOTNET_CLI_TELEMETRY_OPTOUT: 1
194-
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
195-
DOTNET_MULTILEVEL_LOOKUP: 0
196-
pool:
197-
vmImage: 'macos-latest'
198-
steps:
199-
- script: dotnet build -c $(BuildConfig) src/Redist/libtorch-cpu/libtorch-cpu.proj /p:UpdateSHA=true /p:SkipTests=true /p:TargetOS=mac /t:Build /p:IncludeLibTorchCpuPackages=true
200-
condition: eq('${{ parameters.BuildLibTorchPackages }}', true)
201-
displayName: Download libtorch native binaries
202-
203-
- script: dotnet build -c $(BuildConfig) src/TorchSharp/TorchSharp.csproj /p:SkipCuda=true /p:SkipTests=true
204-
displayName: Build mac-x64
205-
206-
- script: dotnet build -c $(BuildConfig) src/TorchVision/TorchVision.csproj /p:SkipCuda=true /p:SkipTests=true
207-
displayName: Build TorchVision
208-
209-
- script: dotnet build -c $(BuildConfig) src/TorchAudio/TorchAudio.csproj /p:SkipCuda=true /p:SkipTests=true
210-
displayName: Build TorchAudio
211-
212-
- publish: $(Build.SourcesDirectory)/bin/obj/packprep/$(BuildConfig)
213-
artifact: MacAssets_x64
214-
215177
# ################################################################################
216178
- job: MacOS_arm64_Native_Build_For_Packages
217179
# ################################################################################
@@ -248,7 +210,6 @@ jobs:
248210
dependsOn:
249211
- Linux_Native_Build_For_Packages
250212
- Windows_Native_Build_For_Packages
251-
- MacOS_x64_Native_Build_For_Packages
252213
- MacOS_arm64_Native_Build_For_Packages
253214
variables:
254215
BuildConfig: Release
@@ -297,37 +258,6 @@ jobs:
297258
- script: rmdir /s /q $(Pipeline.Workspace)\LinuxAssets
298259
displayName: Free up space (LinuxAssets in workspace)
299260

300-
# Download all bits contributing to the packages from the Mac build
301-
- download: current
302-
artifact: MacAssets_x64
303-
304-
- task: CopyFiles@2
305-
displayName: Copy mac-x64 native assets (TorchSharp) to correct folder where the bits contributing to the packages are assembled
306-
inputs:
307-
sourceFolder: $(Pipeline.Workspace)/MacAssets_x64/TorchSharp
308-
targetFolder: $(Build.SourcesDirectory)/bin/obj/packprep/$(BuildConfig)/TorchSharp
309-
310-
- task: CopyFiles@2
311-
displayName: Copy mac-x64 native assets (TorchAudio) to correct folder where the bits contributing to the packages are assembled
312-
inputs:
313-
sourceFolder: $(Pipeline.Workspace)/MacAssets_x64/TorchAudio
314-
targetFolder: $(Build.SourcesDirectory)/bin/obj/packprep/$(BuildConfig)/TorchAudio
315-
316-
- task: CopyFiles@2
317-
displayName: Copy mac-x64 native assets (TorchVision) to correct folder where the bits contributing to the packages are assembled
318-
inputs:
319-
sourceFolder: $(Pipeline.Workspace)/MacAssets_x64/TorchVision
320-
targetFolder: $(Build.SourcesDirectory)/bin/obj/packprep/$(BuildConfig)/TorchVision
321-
322-
- task: CopyFiles@2
323-
displayName: Copy mac-x64 native assets (libtorch-cpu) to correct folder where the bits contributing to the packages are assembled
324-
inputs:
325-
sourceFolder: $(Pipeline.Workspace)/MacAssets_x64
326-
targetFolder: $(Build.SourcesDirectory)/bin/obj/packprep/$(BuildConfig)
327-
328-
- script: rmdir /s /q $(Pipeline.Workspace)\MacAssets_x64
329-
displayName: Free up space (MacAssets_x64 in workspace)
330-
331261
# Download all bits contributing to the packages from the Mac build
332262
- download: current
333263
artifact: MacAssets_arm64

build/BranchInfo.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project>
22
<PropertyGroup>
33
<MajorVersion>0</MajorVersion>
4-
<MinorVersion>102</MinorVersion>
5-
<PatchVersion>8</PatchVersion>
6-
<PreviousPackageVersion>0.102.7</PreviousPackageVersion>
4+
<MinorVersion>103</MinorVersion>
5+
<PatchVersion>0</PatchVersion>
6+
<PreviousPackageVersion>0.102.8</PreviousPackageVersion>
77
</PropertyGroup>
88

99
</Project>

build/Dependencies.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
<!-- Other/Non-Core Product Dependencies -->
99
<PropertyGroup>
10-
<LibTorchVersion>2.2.1</LibTorchVersion>
10+
<LibTorchVersion>2.4.0</LibTorchVersion>
11+
<LibTorchVersion Condition="'$(TargetArchitecture)' == 'x64' and '$(TargetOS)' == 'mac'">2.2.2</LibTorchVersion>
1112
<CudaVersionDot>12.1</CudaVersionDot>
1213
<CudaVersionNoDot>121</CudaVersionNoDot>
1314
<MklDnnVersion>2019.0.5.20190502</MklDnnVersion>

0 commit comments

Comments
 (0)