diff options
author | Soumith Chintala <soumith@gmail.com> | 2015-08-14 19:17:38 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2015-08-14 19:17:38 +0300 |
commit | 5c2e963f4cca3a6c76dc75d0d7503d77dee57d4f (patch) | |
tree | 403fb4fb8452b4f40ab95e5edb0653978df5a389 | |
parent | 8b54d0e2975f24c8fcab59738f7812811e57f95d (diff) | |
parent | 540e96755a8cc33437f23f34ccc8fa8f2484da62 (diff) |
Merge pull request #92 from gheinrich/dev/issue_91
Fix call to processPNG from decompressPNG - closes #91
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -160,11 +160,11 @@ local function decompressPNG(tensor, depth, tensortype) 'image.decompressPNG') end local load_from_file = 0 - local a = template(tensortype).libpng.load(load_from_file, tensor) + local a, bit_depth = template(tensortype).libpng.load(load_from_file, tensor) if a == nil then return nil else - return processPNG(a, depth, tensortype) + return processPNG(a, depth, bit_depth, tensortype) end end rawset(image, 'decompressPNG', decompressPNG) |