Skip to content

Conversation

TroyGarden
Copy link
Contributor

Summary:

context

  • move KT-related tests out from the test_jagged_tensor
  • use hypothesis.strategies to generate the test cases (the standard approach)
  • add some comments in jagged_tensor.py
  • use torch.diff to replace _to_lengths function.

Reviewed By: ezyang

Differential Revision: D56177133

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 31, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56177133

TroyGarden added a commit to TroyGarden/torchrec that referenced this pull request Mar 31, 2025
Summary:

# context
* move KT-related tests out from the test_jagged_tensor
* use hypothesis.strategies to generate the test cases (the standard approach)
* add some comments in jagged_tensor.py
* use `torch.diff` to replace `_to_lengths` function.

Reviewed By: ezyang

Differential Revision: D56177133
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56177133

TroyGarden added a commit to TroyGarden/torchrec that referenced this pull request Mar 31, 2025
Summary:

# context
* move KT-related tests out from the test_jagged_tensor
* use hypothesis.strategies to generate the test cases (the standard approach)
* add some comments in jagged_tensor.py
* use `torch.diff` to replace `_to_lengths` function.

Reviewed By: ezyang

Differential Revision: D56177133
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56177133

Summary:

# context
* split test_jagged_tensor into multiple files to increase readability
* use hypothesis.strategies to generate the test cases (the standard approach)
* add some comments in jagged_tensor.py
* use `torch.diff` to replace `_to_lengths` function.

Reviewed By: ezyang, aporialiao

Differential Revision: D56177133
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56177133

@TroyGarden TroyGarden deleted the export-D56177133 branch June 19, 2025 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants