-
Is there any chance of having a single binary built for both CPU and GPU: <ItemGroup>
<PackageReference Include="TorchSharp-cpu" Version="0.96.7" />
<PackageReference Include="TorchSharp-cuda-linux" Version="0.96.7" />
</ItemGroup> ... and then choose what to use in runtime? Currently the above breaks complaining that CPU and CUDA dlls don't like each other: My naive workaround is to have 3 projects:
but it somehow feels wrong having to switch directories all the time. |
Beta Was this translation helpful? Give feedback.
Answered by
lostmsu
Jun 20, 2022
Replies: 1 comment 1 reply
-
Can't you use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pkese
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can't you use
cuda-linux
binary for both purposes?