ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Input Class Reference

#include <input.h>

Collaboration diagram for Input:

Public Member Functions

 Input ()
 
 ~Input ()
 
void readInput ()
 

Static Public Member Functions

template<class T >
static void read_value (std::ifstream &ifs, T &var)
 
template<class T >
static void read_values (std::ifstream &ifs, const int length, T *var)
 
static void print (std::string message)
 

Public Attributes

int fftdim = 0
 
int nbatch = 0
 
int ntrain = 1
 
int nvalidation = 0
 
std::string * train_dir = nullptr
 
std::string * train_cell = nullptr
 
double * train_a = nullptr
 
std::string * validation_dir = nullptr
 
std::string * validation_cell = nullptr
 
double * validation_a = nullptr
 
std::string loss = "both"
 
int nepoch = 1000
 
double lr_start = 0.01
 
double lr_end = 1e-4
 
int lr_fre = 5000
 
double exponent = 5.
 
int dump_fre = 1
 
int print_fre = 1
 
bool ml_gamma = false
 
bool ml_p = false
 
bool ml_q = false
 
bool ml_tanhp = false
 
bool ml_tanhq = false
 
double chi_p = 1.
 
double chi_q = 1.
 
bool * ml_gammanl = nullptr
 
bool * ml_pnl = nullptr
 
bool * ml_qnl = nullptr
 
bool * ml_xi = nullptr
 
bool * ml_tanhxi = nullptr
 
bool * ml_tanhxi_nl = nullptr
 
bool * ml_tanh_pnl = nullptr
 
bool * ml_tanh_qnl = nullptr
 
bool * ml_tanhp_nl = nullptr
 
bool * ml_tanhq_nl = nullptr
 
double * chi_xi = nullptr
 
double * chi_pnl = nullptr
 
double * chi_qnl = nullptr
 
int feg_limit = 0
 
int change_step = 0
 
double coef_e = 1.
 
double coef_p = 1.
 
double coef_feg_e = 1.
 
double coef_feg_p = 1.
 
int nnode = 10
 
int nlayer = 3
 
int nkernel = 1
 
int * kernel_type = nullptr
 
double * kernel_scaling = nullptr
 
double * yukawa_alpha = nullptr
 
std::string * kernel_file = nullptr
 
std::string device_type = "gpu"
 
bool check_pot = false
 

Constructor & Destructor Documentation

◆ Input()

Input::Input ( )
inline

◆ ~Input()

Input::~Input ( )
inline

Member Function Documentation

◆ print()

static void Input::print ( std::string  message)
inlinestatic
Here is the caller graph for this function:

◆ read_value()

template<class T >
static void Input::read_value ( std::ifstream &  ifs,
T var 
)
inlinestatic
Here is the caller graph for this function:

◆ read_values()

template<class T >
static void Input::read_values ( std::ifstream &  ifs,
const int  length,
T var 
)
inlinestatic
Here is the caller graph for this function:

◆ readInput()

void Input::readInput ( )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ change_step

int Input::change_step = 0

◆ check_pot

bool Input::check_pot = false

◆ chi_p

double Input::chi_p = 1.

◆ chi_pnl

double* Input::chi_pnl = nullptr

◆ chi_q

double Input::chi_q = 1.

◆ chi_qnl

double* Input::chi_qnl = nullptr

◆ chi_xi

double* Input::chi_xi = nullptr

◆ coef_e

double Input::coef_e = 1.

◆ coef_feg_e

double Input::coef_feg_e = 1.

◆ coef_feg_p

double Input::coef_feg_p = 1.

◆ coef_p

double Input::coef_p = 1.

◆ device_type

std::string Input::device_type = "gpu"

◆ dump_fre

int Input::dump_fre = 1

◆ exponent

double Input::exponent = 5.

◆ feg_limit

int Input::feg_limit = 0

◆ fftdim

int Input::fftdim = 0

◆ kernel_file

std::string* Input::kernel_file = nullptr

◆ kernel_scaling

double* Input::kernel_scaling = nullptr

◆ kernel_type

int* Input::kernel_type = nullptr

◆ loss

std::string Input::loss = "both"

◆ lr_end

double Input::lr_end = 1e-4

◆ lr_fre

int Input::lr_fre = 5000

◆ lr_start

double Input::lr_start = 0.01

◆ ml_gamma

bool Input::ml_gamma = false

◆ ml_gammanl

bool* Input::ml_gammanl = nullptr

◆ ml_p

bool Input::ml_p = false

◆ ml_pnl

bool* Input::ml_pnl = nullptr

◆ ml_q

bool Input::ml_q = false

◆ ml_qnl

bool* Input::ml_qnl = nullptr

◆ ml_tanh_pnl

bool* Input::ml_tanh_pnl = nullptr

◆ ml_tanh_qnl

bool* Input::ml_tanh_qnl = nullptr

◆ ml_tanhp

bool Input::ml_tanhp = false

◆ ml_tanhp_nl

bool* Input::ml_tanhp_nl = nullptr

◆ ml_tanhq

bool Input::ml_tanhq = false

◆ ml_tanhq_nl

bool* Input::ml_tanhq_nl = nullptr

◆ ml_tanhxi

bool* Input::ml_tanhxi = nullptr

◆ ml_tanhxi_nl

bool* Input::ml_tanhxi_nl = nullptr

◆ ml_xi

bool* Input::ml_xi = nullptr

◆ nbatch

int Input::nbatch = 0

◆ nepoch

int Input::nepoch = 1000

◆ nkernel

int Input::nkernel = 1

◆ nlayer

int Input::nlayer = 3

◆ nnode

int Input::nnode = 10

◆ ntrain

int Input::ntrain = 1

◆ nvalidation

int Input::nvalidation = 0

◆ print_fre

int Input::print_fre = 1

◆ train_a

double* Input::train_a = nullptr

◆ train_cell

std::string* Input::train_cell = nullptr

◆ train_dir

std::string* Input::train_dir = nullptr

◆ validation_a

double* Input::validation_a = nullptr

◆ validation_cell

std::string* Input::validation_cell = nullptr

◆ validation_dir

std::string* Input::validation_dir = nullptr

◆ yukawa_alpha

double* Input::yukawa_alpha = nullptr

The documentation for this class was generated from the following files: