Skip to content

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

Merged
danieldk merged 7 commits intoexplosion:v8.0.xfrom
shadeMe:fix/backport-from-master-to-v8.0.x
May 18, 2022
Merged

Backport fixes from master to v8.0.x#662
danieldk merged 7 commits intoexplosion:v8.0.xfrom
shadeMe:fix/backport-from-master-to-v8.0.x

Conversation

@shadeMe
Copy link
Copy Markdown
Contributor

@shadeMe shadeMe commented May 11, 2022

Requires

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

shadeMe added 2 commits May 11, 2022 13:12
* Tests: Correctly handle GPU-resident Tensorflow tensors

* Simplify `is_supported_backend_array`
Comment thread thinc/tests/layers/test_tensorflow_wrapper.py Outdated
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
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

shadeMe commented May 17, 2022

@explosion-bot please test_gpu

@explosion-bot
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@explosion-bot please test_gpu

@explosion-bot
Copy link
Copy Markdown
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
Copy Markdown
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