// *************************************************************** // SPDX-FileCopyrightText: Copyright 2024 Ricardo Montañana Gómez // SPDX-FileType: SOURCE // SPDX-License-Identifier: MIT // *************************************************************** #ifndef BAYESNET_UTILS_H #define BAYESNET_UTILS_H #include #include namespace bayesnet { std::vector argsort(std::vector& nums); std::vector> tensorToVectorDouble(torch::Tensor& dtensor); torch::Tensor vectorToTensor(std::vector>& vector, bool transpose = true); } #endif //BAYESNET_UTILS_H