Skip to content
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

python stopped working using pytorch script #17

Closed
yana25 opened this issue Mar 7, 2018 · 4 comments
Closed

python stopped working using pytorch script #17

yana25 opened this issue Mar 7, 2018 · 4 comments

Comments

@yana25
Copy link

yana25 commented Mar 7, 2018

Hi,

I don't know if my problem belong here.
I'm using pytorch scripts on windows and i'm having issues converting my model to fp16 using ".half()" on the entire model and converting BatchNorm layers to .float()
When I run my code it crashes and give me an error "Python stopped working" without showing any exception.
I searched in the Event Viewer the reason why and got the following:
Faulting application name: python.exe, version: 3.6.4150.1013, time stamp: 0x5a5e439a Faulting module name: _C.cp36-win_amd64.pyd, version: 0.0.0.0, time stamp: 0x5a91cbee Exception code: 0xc0000005 Fault offset: 0x000000000078cd95 Faulting process id: 0x2c78 Faulting application start time: 0x01d3b5ee018887d6

@peterjc123
Copy link
Owner

@yana25 Sorry, half tensors are not supported yet. Would you please use .float() instead of .half()?

@yana25
Copy link
Author

yana25 commented Mar 7, 2018

@peterjc123 will it convert my model to fp16? or it still be in fp32?

@peterjc123
Copy link
Owner

FP16 is not supported on Windows. If you use .float, then it will be FP32.

@yana25
Copy link
Author

yana25 commented Mar 7, 2018

ok, thanks!

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

No branches or pull requests

2 participants