-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can we extract the converged tensors? #76
Comments
TeNeS uses mptensor for handling tensors, and so save/load tensors by using mptensor's functionality. As an example, let's consider a bulk tensor
mptensor stores a tensor as a matrix in order to use LAPACK/ScaLAPACK library. The information on local indices of the distributed matrix for each process is saved in
This means the first process has a 256x16 local matrix. The raw data is saved in I will try to write a sample script for loading tensors. Please wait a while. @smorita |
Sorry for the complicated implementation of
T = V.transpose(Axes(1, 2, 0));
|
Dear Dr. Motoyama and Dr. Morita, Thank you very much for your quick response. To open the bin file(where the raw data is stored), which functions in mptensor are related? |
The easiest way to open the saved date is to use a member function T.load("T_0.dat"); This function automatically redistributes tensor elements even if the number of processes is different when saving and loading. |
Thank you very much! I will try and check it! |
I played with the tutorials and found out that you could save the resulting tensors by modifying the parameter.general.tensor_save.
The saved data seems to be the combinations of dtype, indices, and bin files, which I found difficult to interpret.
Is it possible to convert it to dat/txt file so that I can analyze it with other languages( like Python or Julia)?
I am sorry if it is written in the document already.
Thanks!
The text was updated successfully, but these errors were encountered: