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

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkoray kavukcuoglu <koray@kavukcuoglu.org>2013-02-12 14:39:41 +0400
committerkoray kavukcuoglu <koray@kavukcuoglu.org>2013-02-12 14:39:41 +0400
commit45326da58fe2f9045aca99c6c4439094b12916db (patch)
treef23728cb9c49320a58afdb3541a78f5c2c1b8b46 /File.lua
parentf4098402113f4a3766e747cf0f70dd994c11a9d8 (diff)
reverse logic on referenced
Diffstat (limited to 'File.lua')
-rw-r--r--File.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/File.lua b/File.lua
index 0e09b3b..c86d106 100644
--- a/File.lua
+++ b/File.lua
@@ -43,7 +43,7 @@ end
function File:referenced(ref)
local env = torch.getenv(self)
- env.force = ref
+ env.force = not ref
torch.setenv(self,env)
return self
end