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

**Please describe your question** **Please share a code example for the context** Pytorch2.9 has been released, but we are still stuck at 2.5.1. Will a new version be released around...

question

🐞 Bug Description When using TorchSharp's Module system with inheritance, if a derived class overrides a submodule (e.g., replaces a Sequential defined in the base class), calling RegisterComponents() again in...

bug

TorchSharp: 0.105.0 TorchSharp-cuda-windows 0.105.0 OS : Windows 11 .NET : 8.0.3 Hardware : intel 13th i9 - 13980HX, RTX 4090 laptop (not used – repro on CPU) **Repro case:** ```...

Missing Feature

* SSIA. + included commits from #1434. + newly introduced `TorchSharp.{Scalar,Tensor}LeakDetector` can throw exceptions on implicit conversion. - if enabled, it would show stack trace for possible missing `{TorchSharp.Scalar,torch.Tensor}.Dispose`. -...

* SSIA. + addressed to #1494. + fixed same symptom in `torchvision.io.read_async` as well. * intentionally postponed `RELEASENOTES.md` update; i'll do it after a review if needed. * N.B; `dotnet...

TorchSharp 0.105.0 doesn't have `torch.jit.ScriptModule.zero_grad` and falls back into `torch.nn.Module.zero_grad` incorrectly, then terminates silently. Most probably, because `JITModule` is not compatible to `NNModule` in LibTorchSharp. And as reported in https://github.com/pytorch/pytorch/issues/27144,...

**Describe the bug** * SSIA. **To Reproduce** * try to open an image file while processing `torchvision.io.read_image{,_async}(string filename, ...)`. **Expected behavior** * following `stream` must be opened w/ `FileAccess.Read` and...

bug

Hi! I add Windows ARM support with Copilot help (yea there can be some strange style and logic decigions) and check it on Snapdragon X Elite computer for my little...

**Describe the bug** CUDA not available in TorchSharp (.NET Interactive) but available in Console app (Ubuntu 24.04 + .NET 9.0.8) **To Reproduce** Run the same code calling torch.cuda.is_available() in Polyglot...

bug

**Describe the bug** SSIA. **To Reproduce** ``` $ git tag 0.1 libtorch-1.8.0.7 v0.95.4 v0.96.3 v0.99.3 ``` **Expected behavior** ``` $ git tag 0.1 libtorch-1.8.0.7 v0.95.4 v0.96.3 v0.99.3 ... v0.105.1 ```...

bug