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

Half precision implementation #4

Open
je-santos opened this issue Jan 26, 2020 · 1 comment
Open

Half precision implementation #4

je-santos opened this issue Jan 26, 2020 · 1 comment

Comments

@je-santos
Copy link

Hi Jacob,

I tried to estimate the size of my model that uses half precision without any luck.
I changed line 34 to HalfTensor, but got the following message:

RuntimeError: "unfolded3d_copy_cpu" not implemented for 'Half'

Do you know how can I achieve this?

Thanks for your great work.

-Javier

@jacobkimmel
Copy link
Owner

I haven't worked with the HalfTensor structure before, so I'm guessing here.
The only copy happening in this tool is copying some_tensor.size() to CPU as a numpy array.
Are even the size() results stored as HalfTensor?

If so, swapping out .size() for .shape in the get_output_sizes() method might do the trick.

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