TorchSharp icon indicating copy to clipboard operation
TorchSharp copied to clipboard

A .NET library that provides access to the library that powers PyTorch.

Results 134 TorchSharp issues
Sort by recently updated
recently updated
newest added

var a = torch.randn(3, 3).to(torch.bfloat16); a.print();

bug

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...

question

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....

question

Hello I try to implement following: no idea how it works... ![Image](https://github.com/user-attachments/assets/9699d6eb-a752-4a1e-a140-f3a1b93b07f8)

question

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...

question

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...

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...

question