Skip to content

Conversation

@coufon
Copy link
Contributor

@coufon coufon commented Nov 1, 2025

Summary: This diff optimizes KeyedJaggedTensor.to_dict by optionally removing several unnecessary offset computation. It can evidently improve latency if offsets are not needed in the outputs.

Differential Revision: D85995629

@meta-cla meta-cla 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 Nov 1, 2025
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Nov 1, 2025

@coufon has exported this pull request. If you are a Meta employee, you can view the originating Diff in D85995629.

coufon added a commit to coufon/torchrec that referenced this pull request Nov 1, 2025
Summary:

This diff optimizes KeyedJaggedTensor.to_dict by optionally removing several unnecessary offset computation. It can evidently improve latency if offsets are not needed in the outputs.

Differential Revision: D85995629
coufon added a commit to coufon/torchrec that referenced this pull request Nov 1, 2025
Summary:

This diff optimizes KeyedJaggedTensor.to_dict by optionally removing several unnecessary offset computation. It can evidently improve latency if offsets are not needed in the outputs.

Differential Revision: D85995629
coufon added a commit to coufon/torchrec that referenced this pull request Nov 1, 2025
Summary:

This diff optimizes KeyedJaggedTensor.to_dict by optionally removing several unnecessary offset computation. It can evidently improve latency if offsets are not needed in the outputs.

Differential Revision: D85995629
coufon added a commit to coufon/torchrec that referenced this pull request Nov 2, 2025
Summary:

This diff optimizes KeyedJaggedTensor.to_dict by optionally removing several unnecessary offset computation. It can evidently improve latency if offsets are not needed in the outputs.

Differential Revision: D85995629
@coufon coufon force-pushed the export-D85995629 branch 2 times, most recently from 0e8f914 to a76a3b5 Compare November 4, 2025 03:32
coufon added a commit to coufon/torchrec that referenced this pull request Nov 4, 2025
Summary:

This diff optimizes KeyedJaggedTensor.to_dict by optionally removing several unnecessary offset computation. It can evidently improve latency if offsets are not needed in the outputs.

Differential Revision: D85995629
coufon added a commit to coufon/torchrec that referenced this pull request Nov 4, 2025
Summary:

This diff optimizes KeyedJaggedTensor.to_dict by optionally removing several unnecessary offset computation. It can evidently improve latency if offsets are not needed in the outputs.

Differential Revision: D85995629
Summary:

This diff optimizes KeyedJaggedTensor.to_dict by optionally removing several unnecessary offset computation. It can evidently improve latency if offsets are not needed in the outputs.

Reviewed By: guowentian

Differential Revision: D85995629
@meta-codesync meta-codesync bot closed this in bb7299e Nov 5, 2025
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 meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant