TorchSharp
TorchSharp copied to clipboard
A .NET library that provides access to the library that powers PyTorch.
TorchSharp implements some of the models in Pytorch, but only image classification. Are there plans to continue implementing other models in torchvision? [https://github.com/pytorch/vision/tree/main/torchvision/models/detection](https://github.com/pytorch/vision/tree/main/torchvision/models/detection)  I have written a tutorial, some...
The following F# program crashes: ```fsharp open TorchSharp open type torch open type torch.nn torch.set_default_device(torch.CUDA) let embedding = Embedding(2, 3) let tensor = tensor([|1|]) tensor --> embedding // boom ```...
I run some benchmark tests to compare the performance difference between torchsharp and pytorch, both uses `libtorch 2.2.1 + cuda 12.1`. And I notice that torchsharp is slower than pytorch...
PyTorch includes [CUDA streams](https://pytorch.org/docs/stable/notes/cuda.html#cuda-streams), which let multiple GPU requests run in parallel. However it appears that TorchSharp does not support CUDA streams. I searched the codebase and can't find anything...
I discovered this performance issue while using the MNIST dataset. This only happens with the combination of .NET framework and cpu target. It does not happen with .NET target or...
- add support for `torch.utils.data.ConcatDataset` - a new interface `IDataset` is added - now `Dataset` implements `IDataset` - more overloads of `DataLoader()` has been added, to accept `IDataset` datasets -...
For TorchSharp [text classification example][1] there is TorchText used to load data set. I am not sure what I am doing wrong, but I can not find any `using`s to...
I plan to port the 3DGS example for the torchsharp version. This example uses Pytorch3d: https://github.com/xg-chu/GAGAvatar/blob/main/core/libs/flame_model/renderer_utils.py
If torchsharp could introduce CVCUDA, it would be even more perfect,[https://github.com/CVCUDA/CV-CUDA](https://github.com/CVCUDA/CV-CUDA) The official mentioned that the running speed of this library can reach about 30 times that of OpenCV, which...
Hello! I recently implemented the Llama 3.1 model logic with TorchSharp. It works, and I was able to load pretrained bf16 weights using TorchSharp.PyBridge. However, I found that it takes...