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:
authorSoumith Chintala <soumith@gmail.com>2017-01-26 00:26:42 +0300
committerGitHub <noreply@github.com>2017-01-26 00:26:42 +0300
commit7a07afe545b4deae5919d9dc268bfac3d37398c7 (patch)
treeea2cb89e44de8e73d298e52b9226c48a2b313e60 /THNN.lua
parentea7ec8b63dce65a352a773b6538953067dae5ac1 (diff)
Revert "Using accreal instead of real in the API"revert-1109-api
Diffstat (limited to 'THNN.lua')
-rw-r--r--THNN.lua7
1 files changed, 0 insertions, 7 deletions
diff --git a/THNN.lua b/THNN.lua
index 60430f0..9100239 100644
--- a/THNN.lua
+++ b/THNN.lua
@@ -73,13 +73,6 @@ local replacements =
}
}
--- gsub(s, 'real', 'float') changes accreal to accfloat.
--- typedef accfloat ahead of time.
-ffi.cdef("typedef double accfloat;")
--- gsub(s, 'real', 'double') changes accreal to accfloat.
--- typedef accdouble ahead of time
-ffi.cdef("typedef double accdouble;")
-
for i=1,#replacements do
local r = replacements[i]
local s = preprocessed