ext/torch/utils.h in torch-rb-0.13.0 vs ext/torch/utils.h in torch-rb-0.13.1

- old
+ new

@@ -8,11 +8,10 @@ static_assert( TORCH_VERSION_MAJOR == 2 && TORCH_VERSION_MINOR == 0, "Incompatible LibTorch version" ); -// TODO find better place -inline void handle_error(torch::Error const & ex) { +inline void handle_global_error(const torch::Error& ex) { throw Rice::Exception(rb_eRuntimeError, ex.what_without_backtrace()); } // keep THP prefix for now to make it easier to compare code