lib/torch/tensor.rb in torch-rb-0.9.1 vs lib/torch/tensor.rb in torch-rb-0.9.2

- old
+ new

@@ -6,9 +6,12 @@ alias_method :requires_grad?, :requires_grad alias_method :ndim, :dim alias_method :ndimension, :dim + # fix for issue w/ assignment methods + alias_method :grad=, :_set_grad + # use alias_method for performance alias_method :+, :add alias_method :-, :sub alias_method :*, :mul alias_method :/, :div