10 lines
377 B
C++
10 lines
377 B
C++
#ifndef BAYESNET_UTILS_H
|
|
#define BAYESNET_UTILS_H
|
|
#include <vector>
|
|
#include <torch/torch.h>
|
|
namespace bayesnet {
|
|
std::vector<int> argsort(std::vector<double>& nums);
|
|
std::vector<std::vector<double>> tensorToVectorDouble(torch::Tensor& dtensor);
|
|
torch::Tensor vectorToTensor(std::vector<std::vector<int>>& vector, bool transpose = true);
|
|
}
|
|
#endif //BAYESNET_UTILS_H
|