lib/torch/nn/dropoutnd.rb in torch-rb-0.1.3 vs lib/torch/nn/dropoutnd.rb in torch-rb-0.1.4
- old
+ new
@@ -5,11 +5,11 @@
super()
@p = p
@inplace = inplace
end
- def inspect
- "#{self.class.name.split("::").last}(p: #{@p.inspect}, inplace: #{@inplace.inspect})"
+ def extra_inspect
+ format("p: %s, inplace: %s", @p, @inplace)
end
end
end
end