40#include <torch/script.h>
41#include <torch/torch.h>
60template <
class type_f>
61torch::Tensor field2Torch(Field<type_f>& field);
72template <
class type_f>
73Field<type_f> torch2Field(torch::Tensor& tTensor);
75template <
class type_f>
76torch::Tensor ptrList2Torch(PtrList<type_f>& ptrList);
78template <
class type_f>
79PtrList<Field<type_f >> torch2PtrList(torch::Tensor& tTensor);
Implementation of the assert function for ITHACA-FV.