lib/dnn/core/tensor.rb in ruby-dnn-0.16.2 vs lib/dnn/core/tensor.rb in ruby-dnn-1.0.0
- old
+ new
@@ -23,10 +23,10 @@
def +@
self
end
def -@
- self * -1
+ Neg.(self)
end
def +(other)
Layers::Add.(self, other)
end