8000 fixing a truncation bug when numbers are given as strings by soumith · Pull Request #730 · torch/torch7 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fixing a truncation bug when numbers are given as strings #730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2016
Merged

Conversation

soumith
Copy link
Member
@soumith soumith commented Aug 3, 2016

Fixes #706

t = torch.LongTensor(1)
str = '10151188881778163'
t[1] = str
print(str)
print(t:data()[0])

Output:

10151188881778163
10151188881778163LL

@soumith soumith merged commit 17ff317 into master Aug 3, 2016
@soumith soumith deleted the luaGfix branch August 3, 2016 19:48
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
0