lib/torch/nn/functional.rb in torch-rb-0.9.0 vs lib/torch/nn/functional.rb in torch-rb-0.9.1

- old
+ new

@@ -569,10 +569,10 @@ out_size.zip(defaults.last(out_size.length)).map { |v, d| v || d } end end def _interp_output_size(closed_over_args) - input, size, scale_factor, recompute_scale_factor = closed_over_args + input, size, scale_factor, _recompute_scale_factor = closed_over_args dim = input.dim - 2 if size.nil? && scale_factor.nil? raise ArgumentError, "either size or scale_factor should be defined" end if !size.nil? && !scale_factor.nil?