Skip to content

Commit

Permalink
Minor lint cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bichengying committed Feb 24, 2021
1 parent 44352da commit 3d606f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bluefog/run/interactive_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# ==============================================================================

import argparse
import ipyparallel as ipp
import json
import os
import multiprocessing
Expand All @@ -23,6 +22,7 @@
import time
from typing import Dict, List

import ipyparallel as ipp
import bluefog
from bluefog.run import env_util, network_util, horovod_driver

Expand Down Expand Up @@ -85,7 +85,7 @@ def parse_args():

parser_start.add_argument('--extra-mpi-flags', action="store", dest="extra_flags",
help='Extra mpi flages you want to pass for mpirun.')

parser_stop.add_argument('--ipython-profile', action="store", dest="profile",
type=str, default="bluefog",
help="The profile name for ipython environment.")
Expand Down Expand Up @@ -202,7 +202,7 @@ def _maybe_kill_ipcontroller_process(profile):
"Maybe it is already been stopped.")
return False
try:
for _ in range(2): # Kill two times
for _ in range(2): # Kill two times
os.kill(pid, signal.SIGINT)
return True
except:
Expand Down
2 changes: 1 addition & 1 deletion bluefog/torch/mpi_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def neighbor_allgather(tensor: torch.Tensor, *,
src_ranks: Optional[List] = None,
dst_ranks: Optional[List] = None,
enable_topo_check: bool = True,
name: Optional[str] = None,) -> torch.Tensor:
name: Optional[str] = None) -> torch.Tensor:
"""
A function that concatenates the input tensor with the same input tensor on
on all neighbor Bluefog processes (Not include self). The input tensor is not modified.
Expand Down

0 comments on commit 3d606f7

Please sign in to comment.