lib/torch/tensor.rb in torch-rb-0.8.2 vs lib/torch/tensor.rb in torch-rb-0.8.3
- old
+ new
@@ -183,7 +183,13 @@
# center option
def stft(*args)
Torch.stft(*args)
end
+
+ def dup
+ Torch.no_grad do
+ clone
+ end
+ end
end
end