[format] applied code formatting on changed files in pull request 4152 (#4157)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
github-actions[bot]
2023-07-04 16:07:47 +08:00
committed by GitHub
parent f447ca1811
commit c77b3b19be
5 changed files with 5 additions and 5 deletions

View File

@@ -503,4 +503,4 @@ class DeviceMesh:
num_devices = self.logical_mesh_id.shape[mesh_dim]
penalty_factor = num_devices / 2.0
return (self.mesh_alpha[mesh_dim] + self.mesh_beta[mesh_dim] *
(num_devices - 1) / num_devices / num_devices * num_bytes * penalty_factor + 0.001)
(num_devices - 1) / num_devices / num_devices * num_bytes * penalty_factor + 0.001)