Open
Description
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);
}
Metadata
Metadata
Assignees
Labels
No labels