TorchSharp
TorchSharp copied to clipboard
A .NET library that provides access to the library that powers PyTorch.
On March 22, 2025, I gave a talk on.NET AI in Shenzhen, China, where I explained a bit about TorchSharp and ML.NET. Event information: [https://globalai.community/bootcamp/china-shenzhen/](https://globalai.community/bootcamp/china-shenzhen/) Since PPT can only hold...
We ran into a potential memory leak in our long-living application. We have a custom data loader that loads differently sized datasets into RAM (CPU) repeatedly throughout the application's lifespan....
Hello I try to implement following: no idea how it works... 
update README to point to Furnace project
Hello I'm using TorchSharp, but it doesn't seem to work properly on the RTX 5080 Super GPU. I’d like to know if TorchSharp fully supports CUDA 12.8 or if there...
Upgrade build from target framework .Net6 to .Net8
Hello, I trying to get LLMs and Visionmodels running with Torchsharp. I got quite success with this. I use huggingface and timm. But it only works with 'cpu' not with...
This would be useful for using `Torchsharp.Tensor` with other cuda libraries, like `bitsandbytes`. Code could be ``` using System; using System.Runtime.InteropServices; namespace TorchSharp.BitsAndBytes; public static class LibTorchNativeMethod { [DllImport("LibTorchSharp")] public...
ExternalException: Unsupported TypeMeta in ATen: nullptr (uninitialized) (please report this error)
I was trying to apply a LSTM model to my game in unity. ` LSTMModel = new LSTMModel(6, 512, 8); LSTMModel.load("Assets/Scripts/Brain/model_state_dict.pth");` It first raised a error that ArgumentException: Mismatched state_dict...