ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
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
10namespace 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
21template <typename T>
22void check_tensor(const torch::Tensor& tensor, const std::string& filename, const int rank);
23
24} // namespace DeePKS_domain
25
26#endif
27#endif
Definition deepks_basic.h:14
void check_tensor(const torch::Tensor &tensor, const std::string &filename, const int rank)
Definition deepks_check.cpp:6