You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 static extern IntPtr THSStorage_data_ptr(IntPtr tensor);
}
This would be useful for using
Torchsharp.Tensor
with other cuda libraries, likebitsandbytes
.Code could be
Usage
https://github.com/LittleLittleCloud/TorchSharp.BitsAndBytes/blob/4167aff6ea4d9f177beb8d5a6a3e3e2c4afc06a9/TorchSharp.BitsAndBytes/BitsAndByteUtils.cs#L81
The text was updated successfully, but these errors were encountered: