2023-07-20 08:40:08 +00:00
|
|
|
#ifndef BAYESNET_UTILS_H
|
|
|
|
#define BAYESNET_UTILS_H
|
|
|
|
#include <vector>
|
2024-03-08 21:20:54 +00:00
|
|
|
#include <torch/torch.h>
|
2023-07-14 23:05:36 +00:00
|
|
|
namespace bayesnet {
|
2023-11-08 17:45:35 +00:00
|
|
|
std::vector<int> argsort(std::vector<double>& nums);
|
2024-02-23 22:11:14 +00:00
|
|
|
std::vector<std::vector<double>> tensorToVectorDouble(torch::Tensor& dtensor);
|
|
|
|
torch::Tensor vectorToTensor(std::vector<std::vector<int>>& vector, bool transpose = true);
|
2023-07-20 08:40:08 +00:00
|
|
|
}
|
|
|
|
#endif //BAYESNET_UTILS_H
|