-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support stbe length rebatching and remove stbe output padding for MTIA
Summary: 1. For rebatching stbe length without output, it must be 2d tensor in the shape of [F x B] and we can directly concat at dim1; we will use _get_unflattened_lengths as batch info rule hints; 2. For MTIA inference, if stbe is in remote, its output will be padded to max batch size, which will make split not work. In this case, we want to remove the padding and restore its original size. Reviewed By: PaulZhang12 Differential Revision: D64914077 fbshipit-source-id: e386be5721dd79aefcf2ea8f12c8399b900aa395
- Loading branch information
1 parent
cd64b9d
commit f606d5c
Showing
2 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters