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

github.com/torch/threads-ffi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@gmail.com>2016-12-16 02:44:42 +0300
committerGitHub <noreply@github.com>2016-12-16 02:44:42 +0300
commit393e72c8a2a26cfae4456f5449173b37d9a16f65 (patch)
treecbe11d110a9c04a6002543f85f63a858bdb3da2a
parentdac0e700f286b223b8b69f4330b44ce87cd7f744 (diff)
parent6939652f4caf6eaae09cfeb88163e490b8107ca1 (diff)
Merge pull request #88 from gchanan/nonfpSerialize
Add support for non-floating point cuda types.
-rw-r--r--sharedserialize.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/sharedserialize.lua b/sharedserialize.lua
index 8bd23ff..18612e0 100644
--- a/sharedserialize.lua
+++ b/sharedserialize.lua
@@ -87,6 +87,11 @@ for _, typename in ipairs{
'torch.FloatTensor',
'torch.DoubleTensor',
'torch.CudaTensor',
+ 'torch.CudaByteTensor',
+ 'torch.CudaCharTensor',
+ 'torch.CudaShortTensor',
+ 'torch.CudaIntTensor',
+ 'torch.CudaLongTensor',
'torch.CudaDoubleTensor',
'torch.CudaHalfTensor',
'torch.ByteStorage',
@@ -97,6 +102,11 @@ for _, typename in ipairs{
'torch.FloatStorage',
'torch.DoubleStorage',
'torch.CudaStorage',
+ 'torch.CudaByteStorage',
+ 'torch.CudaCharStorage',
+ 'torch.CudaShortStorage',
+ 'torch.CudaIntStorage',
+ 'torch.CudaLongStorage',
'torch.CudaDoubleStorage',
'torch.CudaHalfStorage',
'torch.Allocator'} do