matrix97317 / OneTensor

This is a simple and easy-to-use Tensor Library.
5 stars 1 forks source link

support python interface? #16

Open twmht opened 5 months ago

twmht commented 5 months ago

Hi,

Do you have any plan to support python interface? since it's very common to convert the data to cupy or pytorch using dlpack.

matrix97317 commented 4 months ago

// C++ env: Create tensor OneTensor A(Shape(100,100)); A.SaveNpyFile("xxx.npy");

// python env: Load tensor import numpy as np data = np.load("xxx.npy");