#include #include #include #include #include #include #include #include #include #include #include #include #include extern "C" { void delete_tensor(at::Tensor* tensor); void delete_tensorlist(std::vector* tensors); void delete_tensorindex(at::indexing::TensorIndex* idx); void delete_tensorindexlist(std::vector* idxs); void delete_c10dict(c10::Dict* object); void delete_c10listivalue(c10::List* object); void delete_c10listtensor(c10::List* object); void delete_c10listoptionaltensor(c10::List>* object); void delete_c10listdouble(c10::List* object); void delete_c10listint(c10::List* object); void delete_c10listbool(c10::List* object); void delete_stdvectordouble(std::vector* object); void delete_stdvectorint(std::vector* object); void delete_stdvectorbool(std::vector* object); void delete_c10tuple(c10::intrusive_ptr* object); void delete_context(at::Context* object); void delete_dimname(at::Dimname* object); void delete_dimnamelist(std::vector* object); void delete_generator(at::Generator* object); void delete_ivalue(at::IValue* object); void delete_ivaluelist(std::vector* object); void delete_intarray(std::vector* object); void delete_module(torch::jit::script::Module* object); void delete_jitgraph(std::shared_ptr* object); void delete_jitnode(torch::jit::Node* object); void delete_jitvalue(torch::jit::Value* object); void delete_scalar(at::Scalar* object); void delete_stdarraybool2(std::array* object); void delete_stdarraybool3(std::array* object); void delete_stdarraybool4(std::array* object); void delete_stdstring(std::string* object); void delete_storage(at::Storage* object); void delete_symbol(at::Symbol* object); void delete_tensoroptions(at::TensorOptions* object); void delete_tensortensor(std::tuple* ptr); void delete_tensortensortensortensortensor(std::tuple* ptr); void delete_tensortensortensortensortensortensor(std::tuple* ptr); void delete_tensortensortensortensortensortensortensor(std::tuple* ptr); void delete_tensortensortensortensorint64int64int64int64tensor(std::tuple* ptr); void delete_tensortensortensortensorlist(std::tuple>* ptr); void delete_tensortensortensortensorint64(std::tuple* ptr); void delete_tensortensortensor(std::tuple* ptr); void delete_tensortensortensortensor(std::tuple* ptr); void delete_tensortensorcdoubleint64(std::tuple* ptr); void delete_tensortensorint64int64tensor(std::tuple* ptr); void delete_tensortensorint64int64tensortensor(std::tuple* ptr); void delete_tensorlisttensor(std::tuple,at::Tensor>* ptr); void delete_tensortensorlist(std::tuple>* ptr); void delete_tensortensorlisttensorlist(std::tuple,std::vector>* ptr); void delete_tensorlisttensorlisttensorlisttensorlisttensorlist(std::tuple,std::vector,std::vector,std::vector,std::vector>* ptr); void delete_cdoubleint64(std::tuple* ptr); void delete_cdoublecdouble(std::tuple* ptr); void delete_tensorgenerator(std::tuple* ptr); void delete_optimizer(torch::optim::Optimizer* ptr); void delete_stream(c10::Stream* ptr); void delete_arrayrefscalar(at::ArrayRef* ptr); void delete_vectorscalar(std::vector* ptr); #include "hasktorch_dump.h" };