Skip to content

Conversation

@aropan
Copy link

@aropan aropan commented Feb 21, 2017

Non-working example:

torch.setdefaulttensortype('torch.FloatTensor')
print(torch.getdefaulttensortype())
display = require('display')
display.image({torch.Tensor(1, 1, 1)})
print(torch.getdefaulttensortype())

Output:

torch.FloatTensor
torch.DoubleTensor

After fix and correct output:

torch.FloatTensor
torch.FloatTensor

@aropan aropan changed the title Fixed restoring defailt tensor type after call .image(...) Fix restoring default tensor type after call .image(...) Feb 21, 2017
@aropan
Copy link
Author

aropan commented Feb 22, 2017

@szym do merge as soon as can plz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant