Skip to content

Commit 0ec95a6

Browse files
committed
[BE] follow autoformating and linter
ghstack-source-id: f757813 Pull Request resolved: pytorch/pytorch#151507
1 parent eba691c commit 0ec95a6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

torch/distributed/tensor/_ops/_view_ops.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,11 @@ def get_in_dim_to_shard(cmd: DimSpec) -> Optional[InputDim]:
560560
shard_dim_map[in_dim.input_dim] = dim
561561

562562
input_tgt_placements = [
563-
Replicate()
564-
if isinstance(p, Shard) and not shardable_dims[p.dim][mesh_dim]
565-
else p
563+
(
564+
Replicate()
565+
if isinstance(p, Shard) and not shardable_dims[p.dim][mesh_dim]
566+
else p
567+
)
566568
for mesh_dim, p in enumerate(input_src_placements)
567569
]
568570
output_placements = [

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy