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

Backport fixes from master to v8.0.x #662

Merged
merged 7 commits into from
May 18, 2022

Conversation

shadeMe
Copy link
Collaborator

@shadeMe shadeMe commented May 11, 2022

Requires

The following PRs need to be merged into master and then cherry-picked into this branch.

* Tests: Correctly handle GPU-resident Tensorflow tensors

* Simplify `is_supported_backend_array`
shadeMe and others added 2 commits May 17, 2022 11:57
* `CupyOps`: Simplify `asarray`

* Remove `cast_array` flag and use `astype` unconditionally

* Revert unconditional call to `astype`

* Remove no-op
* `NumpyOps`: Better type-casting in `asarray`

* Simplify `dtype` check

* Update thinc/backends/numpy_ops.pyx

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>

* Simplify casting further, avoid copies if possible

* Remove no-op

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
@shadeMe shadeMe requested a review from svlandeg May 17, 2022 09:58
@shadeMe shadeMe marked this pull request as ready for review May 17, 2022 09:58
@shadeMe shadeMe marked this pull request as draft May 17, 2022 10:00
@svlandeg
Copy link
Member

I suppose this can be taken out of WIP?

@shadeMe shadeMe marked this pull request as ready for review May 17, 2022 10:36
@shadeMe
Copy link
Collaborator Author

shadeMe commented May 17, 2022

@explosion-bot please test_gpu

@explosion-bot
Copy link
Collaborator

explosion-bot commented May 17, 2022

🪁 Successfully triggered build on Buildkite

URL: https://buildkite.com/explosion-ai/thinc-gpu-test-suite/builds/65

@danieldk danieldk self-requested a review May 17, 2022 12:21
danieldk and others added 2 commits May 18, 2022 08:20
* Fix out-of-bounds writes in NumpyOps/CupyOps

- Using `{CupyOps,NumpyOps}.adam` with incompatible shapes for weights,
  gradients, or moments resulted in out-of-bound writes.
- Using `NumpyOps.adam` with non-float32 arrays resulted filling arrays
  with incorrect data.

* Remove print debugging remnants

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>

* More print debugging remnants

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
@danieldk
Copy link
Contributor

@explosion-bot please test_gpu

@explosion-bot
Copy link
Collaborator

explosion-bot commented May 18, 2022

🪁 Successfully triggered build on Buildkite

URL: https://buildkite.com/explosion-ai/thinc-gpu-test-suite/builds/66

@danieldk
Copy link
Contributor

Added #664.

@danieldk danieldk merged commit a9498a2 into explosion:v8.0.x May 18, 2022
@shadeMe shadeMe deleted the fix/backport-from-master-to-v8.0.x branch May 18, 2022 10:26
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.

4 participants