ABACUS
develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
source
source_lcao
module_deepks
deepks_check.h
Go to the documentation of this file.
1
#ifndef DEEPKS_CHECK_H
2
#define DEEPKS_CHECK_H
3
4
#ifdef __MLALGO
5
6
#include <string>
7
#include <torch/script.h>
8
#include <torch/torch.h>
9
10
namespace
DeePKS_domain
11
{
12
//------------------------
13
// deepks_check.cpp
14
//------------------------
15
16
// This file contains subroutines for checking files
17
18
// There are 1 subroutines in this file:
19
// 1. check_tensor, which is used for tensor data checking
20
21
template
<
typename
T>
22
void
check_tensor
(
const
torch::Tensor& tensor,
const
std::string& filename,
const
int
rank);
23
24
}
// namespace DeePKS_domain
25
26
#endif
27
#endif
DeePKS_domain
Definition
deepks_basic.h:14
DeePKS_domain::check_tensor
void check_tensor(const torch::Tensor &tensor, const std::string &filename, const int rank)
Definition
deepks_check.cpp:6
Generated by
1.9.8