Skip to content

Move ATen/Half to ATen/core, and apply lint#10137

Closed
ezyang wants to merge 4 commits intopytorch:masterfrom
ezyang:export-D9122340
Closed

Move ATen/Half to ATen/core, and apply lint#10137
ezyang wants to merge 4 commits intopytorch:masterfrom
ezyang:export-D9122340

Conversation

@ezyang
Copy link
Contributor

@ezyang ezyang commented Aug 1, 2018

Summary: at::Half is a more featureful version of caffe2::float16, giving you a type for half-precision floats without needing to be compiling with nvcc.

Differential Revision: D9122340

ezyang added 4 commits August 1, 2018 12:50
Differential Revision: D9119768

fbshipit-source-id: 631b4e15a797781492723a33af1b695389ff32d4
Differential Revision: D9121096

fbshipit-source-id: 0ee9fdd830c42f844b543f48c7b4cf9cde7108d0
…10134)

Summary:
This will be needed soon because I want to move Half.h into
ATen/core, and then I cannot have a TH dependency.

I also took the liberty of making the code more strict-aliasing
safe (this is not actually useful, since we will never built Torch
with strict aliasing) by replacing pointer casts between
float and unsigned with a memcpy instead.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Pull Request resolved: pytorch#10134

Differential Revision: D9121920

fbshipit-source-id: 2ab1012d3df3b4ad39ab6d0c5b26f9779d7f3521
Summary:
This rewrites checked_convert to use stringstreams, eliminating the use of to_string which is not available on Android stdc++.

Pull Request resolved: pytorch#10137

Differential Revision: D9122340

fbshipit-source-id: 747f0159df76691b99eb832118ac81498ae85308
zdevito pushed a commit to zdevito/ATen that referenced this pull request Aug 2, 2018
Summary:
This rewrites checked_convert to use stringstreams, eliminating the use of to_string which is not available on Android stdc++.

Pull Request resolved: pytorch/pytorch#10137

Reviewed By: smessmer

Differential Revision: D9122340

fbshipit-source-id: b7c1bff70e36217305f2b3333c51543ef8ff3d9c
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
This rewrites checked_convert to use stringstreams, eliminating the use of to_string which is not available on Android stdc++.

Pull Request resolved: pytorch#10137

Reviewed By: smessmer

Differential Revision: D9122340

fbshipit-source-id: b7c1bff70e36217305f2b3333c51543ef8ff3d9c
@ezyang ezyang added the merged label Jun 26, 2019
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