35#ifndef torchUTILITIES_H
36#define torchUTILITIES_H
39#include <torch/script.h>
40#include <torch/torch.h>
46torch::Tensor removeConstValues(torch::Tensor input, std::vector<int>& indices,
47 std::vector<double>& constValues);
48bool isConst(torch::Tensor& tTensor);
50void save(
const torch::Tensor& tensor,
const std::string fname);
52torch::Tensor load(
const std::string fname);
Implementation of the assert function for ITHACA-FV.