Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimize d2h syncs in calculating
length_per_key
from `stride_per_k…
…ey` (#1485) Summary: Pull Request resolved: #1485 for large numbers of features, we will call .item() for each one causing a large number of d2h syncs. this diff combines list of tensors into a single tensor and calls a single .tolist() Reviewed By: bigning Differential Revision: D51046476 fbshipit-source-id: 26fd38767d1d48dade24057cd2136b15ea29c16c
- Loading branch information