diff --git a/plugins/tensorboard-plugins/tb_plugin/ci_scripts/install_env.sh b/plugins/tensorboard-plugins/tb_plugin/ci_scripts/install_env.sh index 11f588a031b7cff1d032a59d4e26b1a9e027015b..04406ae6e495fbe715c3d8cce54f7a16ee6c3992 100644 --- a/plugins/tensorboard-plugins/tb_plugin/ci_scripts/install_env.sh +++ b/plugins/tensorboard-plugins/tb_plugin/ci_scripts/install_env.sh @@ -2,23 +2,6 @@ set -ex -# install cuda -#if [ "$CUDA_VERSION" = "cu101" ]; then -# wget https://developer.download.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.243_418.87.00_linux.run -# sudo sh cuda_10.1.243_418.87.00_linux.run -#elif [ "$CUDA_VERSION" = "cu102" ]; then -# wget https://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_440.33.01_linux.run -# sudo sh cuda_10.2.89_440.33.01_linux.run -#elif [ "$CUDA_VERSION" = "cu111" ]; then -# wget https://developer.download.nvidia.com/compute/cuda/11.1.0/local_installers/cuda_11.1.0_455.23.05_linux.run -# sudo sh cuda_11.1.0_455.23.05_linux.run -#elif [ "$CUDA_VERSION" = "cu112" ]; then -# wget https://developer.download.nvidia.com/compute/cuda/11.2.0/local_installers/cuda_11.2.0_460.27.04_linux.run -# sudo sh cuda_11.2.0_460.27.04_linux.run -#fi - - - # install pytorch pip install numpy tensorboard typing-extensions pillow pytest if [ "$PYTORCH_VERSION" = "nightly" ]; then diff --git a/plugins/tensorboard-plugins/tb_plugin/fe/src/components/ModuleView.tsx b/plugins/tensorboard-plugins/tb_plugin/fe/src/components/ModuleView.tsx index e28c29f3fd5e71c93070e675f839e5dd26c56568..38e5118c95dab8155f622cdc257c1665572bcd8d 100644 --- a/plugins/tensorboard-plugins/tb_plugin/fe/src/components/ModuleView.tsx +++ b/plugins/tensorboard-plugins/tb_plugin/fe/src/components/ModuleView.tsx @@ -251,7 +251,6 @@ export const ModuleView: React.FC = (props) => { height={flameHeight} width={cardWidth} onChange={(node: any) => { - console.log(`"${node.name}" focused`) }} /> )} diff --git a/plugins/tensorboard-plugins/tb_plugin/fe/src/components/Overview.tsx b/plugins/tensorboard-plugins/tb_plugin/fe/src/components/Overview.tsx index c9d16bf9580abbc7e226fbd5110ac8bd71f354ed..afa36801af79bfb0444e8d31d339203ed768a05e 100644 --- a/plugins/tensorboard-plugins/tb_plugin/fe/src/components/Overview.tsx +++ b/plugins/tensorboard-plugins/tb_plugin/fe/src/components/Overview.tsx @@ -93,7 +93,6 @@ export const Overview: React.FC = (props) => { setSteps(resp.steps) setRecommendations(resp.recommendations) setGpuMetrics(resp.gpu_metrics) - console.log(resp.gpu_metrics) }) }, [run, worker, span]) diff --git a/plugins/tensorboard-plugins/tb_plugin/torch_tb_profiler/profiler/event_parser.py b/plugins/tensorboard-plugins/tb_plugin/torch_tb_profiler/profiler/event_parser.py index 6df381ae447a702d14898c3cbeffde2001b41b07..213d8002592f8bcac867d6c63b76538097a5ca64 100644 --- a/plugins/tensorboard-plugins/tb_plugin/torch_tb_profiler/profiler/event_parser.py +++ b/plugins/tensorboard-plugins/tb_plugin/torch_tb_profiler/profiler/event_parser.py @@ -206,8 +206,6 @@ class NodeParserMixin: class StepParser: def __init__(self): # we could not use [[]] * len here since they all point to same memory - # https://stackoverflow.com/questions/12791501/python-initializing-a-list-of-lists - # https://stackoverflow.com/questions/240178/list-of-lists-changes-reflected-across-sublists-unexpectedly self.role_ranges: List[List[Tuple[int, int]]] = [[] for _ in range(ProfileRole.Total - 1)] self.steps: List[Tuple[int, int]] = [] self.steps_names: List[str] = [] diff --git a/plugins/tensorboard-plugins/tb_plugin/torch_tb_profiler/profiler/node.py b/plugins/tensorboard-plugins/tb_plugin/torch_tb_profiler/profiler/node.py index 02718839874f66505d5c067ea6bfc8193c9798f9..54dc5d093bec6f87826c1a89853828d2005c4036 100644 --- a/plugins/tensorboard-plugins/tb_plugin/torch_tb_profiler/profiler/node.py +++ b/plugins/tensorboard-plugins/tb_plugin/torch_tb_profiler/profiler/node.py @@ -73,8 +73,6 @@ class HostNode(BaseNode): class OperatorNode(HostNode): # Don't use [] as default parameters - # https://stackoverflow.com/questions/1132941/least-astonishment-and-the-mutable-default-argument?page=1&tab=votes#tab-top - # https://web.archive.org/web/20200221224620/http://effbot.org/zone/default-values.htm def __init__(self, children=None, runtimes=None, input_shape: Optional[List[List[int]]] = None, input_type: Optional[List[str]] = None, callstack: Optional[str] = None, self_host_duration: int = 0, self_device_duration: int = 0, **kwargs):