diff options
author | Jonathan Tompson <tompson@cims.nyu.edu> | 2013-11-18 21:46:02 +0400 |
---|---|---|
committer | Jonathan Tompson <tompson@cims.nyu.edu> | 2013-11-18 21:46:02 +0400 |
commit | 4734d2431b63acaa3b26199cc7dfbb770b6566a4 (patch) | |
tree | c27d9d3b4f0fb7cf8b118acb100863bfd0384770 /PairwiseDistance.lua | |
parent | f87f7415eb8fc3f1b96f28a40a7537dd57e0876f (diff) |
fixed PairwiseDistance type() function bug. Overloaded type now returns self.
Diffstat (limited to 'PairwiseDistance.lua')
-rw-r--r-- | PairwiseDistance.lua | 1 |
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 |