#include <nn_of.h>
|
| | NN_OFImpl (int nrxx, int nrxx_vali, int ninpt, int nnode, int nlayer, torch::Device device, std::ostream &ofs_running) |
| | ~NN_OFImpl () |
| template<class T> |
| void | set_data (T *data, const std::vector< std::string > &descriptor_type, const std::vector< int > &kernel_index, torch::Tensor &nn_input) |
| torch::Tensor | forward (torch::Tensor inpt) |
◆ NN_OFImpl()
| NN_OFImpl::NN_OFImpl |
( |
int | nrxx, |
|
|
int | nrxx_vali, |
|
|
int | ninpt, |
|
|
int | nnode, |
|
|
int | nlayer, |
|
|
torch::Device | device, |
|
|
std::ostream & | ofs_running ) |
◆ ~NN_OFImpl()
| NN_OFImpl::~NN_OFImpl |
( |
| ) |
|
|
inline |
◆ forward()
| torch::Tensor NN_OFImpl::forward |
( |
torch::Tensor | inpt | ) |
|
◆ set_data()
| void NN_OFImpl::set_data |
( |
T * | data, |
|
|
const std::vector< std::string > & | descriptor_type, |
|
|
const std::vector< int > & | kernel_index, |
|
|
torch::Tensor & | nn_input ) |
|
inline |
| torch::Tensor NN_OFImpl::F |
◆ fc1
| torch::nn::Linear NN_OFImpl::fc1 {nullptr} |
◆ fc2
| torch::nn::Linear NN_OFImpl::fc2 {nullptr} |
◆ fc3
| torch::nn::Linear NN_OFImpl::fc3 {nullptr} |
◆ fc4
| torch::nn::Linear NN_OFImpl::fc4 {nullptr} |
◆ input_vali
| torch::Tensor NN_OFImpl::input_vali |
◆ inputs
| torch::Tensor NN_OFImpl::inputs |
◆ nfc
◆ ninpt
◆ nlayer
| int NN_OFImpl::nlayer = 3 |
◆ nnode
| int NN_OFImpl::nnode = 10 |
◆ nrxx
◆ nrxx_vali
| int NN_OFImpl::nrxx_vali = 0 |
The documentation for this struct was generated from the following files:
- /home/runner/work/abacus-develop/abacus-develop/source/source_pw/module_ofdft/nn_of.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_pw/module_ofdft/nn_of.cpp