BayesNet/bayesnet/utils/bayesnetUtils.h

10 lines
377 B
C
Raw Normal View History

#ifndef BAYESNET_UTILS_H
#define BAYESNET_UTILS_H
#include <vector>
2024-03-08 21:20:54 +00:00
#include <torch/torch.h>
namespace bayesnet {
2023-11-08 17:45:35 +00:00
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