Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NestedTensor] Add example NestedTensor objects with inner dimension …
…of size 1 to tests reducing along jagged dimension for NestedTensor (pytorch#131516) Add example `NestedTensor`s with inner dimension of size `1` to `_get_example_tensor_lists` with `include_inner_dim_size_1=True`. This diff creates `NestedTensor`s of sizes `(B, *, 1)` and `(B, *, 5, 1)`, ensuring that the current implementations of jagged reductions for `sum` and `mean` hold for tensors of effective shape `(B, *)` and `(B, *, 5)`. Differential Revision: [D59846023](https://our.internmc.facebook.com/intern/diff/D59846023/) Pull Request resolved: pytorch#131516 Approved by: https://github.com/davidberard98
- Loading branch information