#include <data.h>
|
| | ~Data () |
| |
| void | load_data (Input &input, const int ndata, std::string *dir, const torch::Device device) |
| |
| torch::Tensor | get_data (std::string parameter, const int ikernel) |
| |
| void | loadTensor (std::string file, std::vector< long unsigned int > cshape, bool fortran_order, std::vector< double > &container, const int index, const int fftdim, torch::Tensor &data) |
| |
| void | dumpTensor (const torch::Tensor &data, std::string filename, int nx) |
| |
| std::string | file_name (std::string parameter, const int kernel_type, const double kernel_scaling) |
| |
|
| void | init_label (Input &input) |
| |
| void | init_data (const int nkernel, const int ndata, const int fftdim, const torch::Device device) |
| |
| void | load_data_ (Input &input, const int ndata, const int fftdim, std::string *dir) |
| |
|
| const double | cTF = 3. /10. * std::pow(3. * std::pow(M_PI, 2.), 2. / 3.) * 2. |
| |
| const double | cDirac = - 3. /4. * std::pow(3. / M_PI, 1./3.) * 2. |
| |
| double | tau_exp = 5. / 3. |
| |
◆ ~Data()
◆ dumpTensor()
| void Data::dumpTensor |
( |
const torch::Tensor & |
data, |
|
|
std::string |
filename, |
|
|
int |
nx |
|
) |
| |
◆ file_name()
| std::string Data::file_name |
( |
std::string |
parameter, |
|
|
const int |
kernel_type, |
|
|
const double |
kernel_scaling |
|
) |
| |
◆ get_data()
| torch::Tensor Data::get_data |
( |
std::string |
parameter, |
|
|
const int |
ikernel |
|
) |
| |
◆ init_data()
| void Data::init_data |
( |
const int |
nkernel, |
|
|
const int |
ndata, |
|
|
const int |
fftdim, |
|
|
const torch::Device |
device |
|
) |
| |
|
private |
◆ init_label()
| void Data::init_label |
( |
Input & |
input | ) |
|
|
private |
◆ load_data()
| void Data::load_data |
( |
Input & |
input, |
|
|
const int |
ndata, |
|
|
std::string * |
dir, |
|
|
const torch::Device |
device |
|
) |
| |
◆ load_data_()
| void Data::load_data_ |
( |
Input & |
input, |
|
|
const int |
ndata, |
|
|
const int |
fftdim, |
|
|
std::string * |
dir |
|
) |
| |
|
private |
◆ loadTensor()
| void Data::loadTensor |
( |
std::string |
file, |
|
|
std::vector< long unsigned int > |
cshape, |
|
|
bool |
fortran_order, |
|
|
std::vector< double > & |
container, |
|
|
const int |
index, |
|
|
const int |
fftdim, |
|
|
torch::Tensor & |
data |
|
) |
| |
◆ cDirac
| const double Data::cDirac = - 3. /4. * std::pow(3. / M_PI, 1./3.) * 2. |
|
private |
◆ cTF
| const double Data::cTF = 3. /10. * std::pow(3. * std::pow(M_PI, 2.), 2. / 3.) * 2. |
|
private |
◆ enhancement
| torch::Tensor Data::enhancement |
◆ enhancement_mean
| torch::Tensor Data::enhancement_mean |
◆ gamma
| torch::Tensor Data::gamma |
◆ gammanl
| std::vector<torch::Tensor> Data::gammanl = {} |
◆ load_gamma
| bool Data::load_gamma = false |
◆ load_gammanl
| bool* Data::load_gammanl = nullptr |
◆ load_p
| bool Data::load_p = false |
◆ load_pnl
| bool* Data::load_pnl = nullptr |
◆ load_q
| bool Data::load_q = false |
◆ load_qnl
| bool* Data::load_qnl = nullptr |
◆ load_tanh_pnl
| bool* Data::load_tanh_pnl = nullptr |
◆ load_tanh_qnl
| bool* Data::load_tanh_qnl = nullptr |
◆ load_tanhp
| bool Data::load_tanhp = false |
◆ load_tanhp_nl
| bool* Data::load_tanhp_nl = nullptr |
◆ load_tanhq
| bool Data::load_tanhq = false |
◆ load_tanhq_nl
| bool* Data::load_tanhq_nl = nullptr |
◆ load_tanhxi
| bool* Data::load_tanhxi = nullptr |
◆ load_tanhxi_nl
| bool* Data::load_tanhxi_nl = nullptr |
◆ load_xi
| bool* Data::load_xi = nullptr |
◆ nablaRho
| torch::Tensor Data::nablaRho |
◆ nx
◆ nx_tot
◆ pauli
| torch::Tensor Data::pauli |
◆ pauli_mean
| torch::Tensor Data::pauli_mean |
◆ pnl
| std::vector<torch::Tensor> Data::pnl = {} |
◆ qnl
| std::vector<torch::Tensor> Data::qnl = {} |
◆ rho
◆ tanh_pnl
| std::vector<torch::Tensor> Data::tanh_pnl = {} |
◆ tanh_qnl
| std::vector<torch::Tensor> Data::tanh_qnl = {} |
◆ tanhp
| torch::Tensor Data::tanhp |
◆ tanhp_nl
| std::vector<torch::Tensor> Data::tanhp_nl = {} |
◆ tanhq
| torch::Tensor Data::tanhq |
◆ tanhq_nl
| std::vector<torch::Tensor> Data::tanhq_nl = {} |
◆ tanhxi
| std::vector<torch::Tensor> Data::tanhxi = {} |
◆ tanhxi_nl
| std::vector<torch::Tensor> Data::tanhxi_nl = {} |
◆ tau_exp
| double Data::tau_exp = 5. / 3. |
|
private |
◆ tau_lda
| torch::Tensor Data::tau_lda |
◆ tau_mean
| torch::Tensor Data::tau_mean |
◆ xi
| std::vector<torch::Tensor> Data::xi = {} |
The documentation for this class was generated from the following files:
- /home/runner/work/abacus-develop/abacus-develop/source/source_pw/module_ofdft/ml_tools/data.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_pw/module_ofdft/ml_tools/data.cpp