fix failed test_kjt_bucketize_before_all2all_cpu #2689
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
context
_fx_wrap_tensor_to_device_dtype
functionwhere
block_bucketize_row_pos: List[torch.tensor]
, but the function only accepts torch.Tensorblock_bucketize_pos
'sdtype
should be the same askjt._length
, however, it triggers the following error{F1974430883}
block_bucketize_pos
should have the same dtype askjt._values
.length has a type name of
offset_t
, values has a type name ofindex_t
, the same asblock_bucketize_pos
.Reviewed By: dstaay-fb
Differential Revision: D68358894