ext/torch/tensor.cpp in torch-rb-0.13.0 vs ext/torch/tensor.cpp in torch-rb-0.13.1

- old
+ new

@@ -94,11 +94,10 @@ END_HANDLE_TH_ERRORS } void init_tensor(Rice::Module& m, Rice::Class& c, Rice::Class& rb_cTensorOptions) { rb_cTensor = c; - rb_cTensor.add_handler<torch::Error>(handle_error); add_tensor_functions(rb_cTensor); THPVariableClass = rb_cTensor.value(); rb_define_method(rb_cTensor, "backward", (VALUE (*)(...)) tensor__backward, -1); @@ -284,10 +283,9 @@ [](Tensor& self, torch::Device& device, int dtype, bool non_blocking, bool copy) { return self.to(device, (torch::ScalarType) dtype, non_blocking, copy); }); rb_cTensorOptions - .add_handler<torch::Error>(handle_error) .define_method( "dtype", [](torch::TensorOptions& self, int dtype) { return self.dtype((torch::ScalarType) dtype); })