8000 Support remaining *_like factory functions for NJT by jbschlosser · Pull Request #144889 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

Support remaining *_like factory functions for NJT #144889

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

Closed
wants to merge 8 commits into from
Prev Previous commit
Next Next commit
Update on "Support remaining *_like factory functions for NJT"
Fixes #144761

This PR adds NJT impls for those *_like functions that were previously missing:
* `full_like()`
* `rand_like()`
* `randint_like()`

It also fixes a bug in existing *_like functions when a new device is specified. Fix is to also transfer `offsets` / `lengths` to the new device.

[ghstack-poisoned]
  • Loading branch information
jbschlosser committed Jan 21, 2025
commit 5189d8b21c7f113376228b428e10851f47c0908a

This merge commit was added into this branch cleanly.

There are no new changes to show, but you can still view the diff.

0