35#ifndef torchUTILITIES_H
36#define torchUTILITIES_H
39#include <torch/script.h>
40#include <torch/torch.h>
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.
torch::Tensor load(const std::string fname)
torch::Tensor removeConstValues(torch::Tensor input, std::vector< int > &indices, std::vector< double > &constValues)
bool isConst(torch::Tensor &tTensor)
void save(const torch::Tensor &torchTensor, const std::string fname)