ext/torch/utils.h in torch-rb-0.6.0 vs ext/torch/utils.h in torch-rb-0.7.0
- old
+ new
@@ -1,12 +1,11 @@
#pragma once
-#include <rice/Exception.hpp>
-#include <rice/Symbol.hpp>
+#include <rice/rice.hpp>
+#include <rice/stl.hpp>
// TODO find better place
-inline void handle_error(torch::Error const & ex)
-{
+inline void handle_error(torch::Error const & ex) {
throw Rice::Exception(rb_eRuntimeError, ex.what_without_backtrace());
}
// keep THP prefix for now to make it easier to compare code