Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/nn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Tompson <tompson@cims.nyu.edu>2013-11-18 21:46:02 +0400
committerJonathan Tompson <tompson@cims.nyu.edu>2013-11-18 21:46:02 +0400
commit4734d2431b63acaa3b26199cc7dfbb770b6566a4 (patch)
treec27d9d3b4f0fb7cf8b118acb100863bfd0384770 /PairwiseDistance.lua
parentf87f7415eb8fc3f1b96f28a40a7537dd57e0876f (diff)
fixed PairwiseDistance type() function bug. Overloaded type now returns self.
Diffstat (limited to 'PairwiseDistance.lua')
-rw-r--r--PairwiseDistance.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/PairwiseDistance.lua b/PairwiseDistance.lua
index b8c2f1e..affc2e5 100644
--- a/PairwiseDistance.lua
+++ b/PairwiseDistance.lua
@@ -99,5 +99,6 @@ function PairwiseDistance:type(type)
-- Now convert the left over table elements
self.gradInput[1] = self.gradInput[1]:type(type)
self.gradInput[2] = self.gradInput[2]:type(type)
+ return self
end