Skip to content

Commit

Permalink
add copyright; remove unused commented line
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyjie committed Aug 6, 2024
1 parent 20b51de commit f246513
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 0 additions & 1 deletion nemo/core/classes/modelPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
from nemo.utils.debug_hook import register_debug_hooks
from nemo.utils.exceptions import NeMoBaseException
from nemo.utils.get_rank import get_rank, is_global_rank_zero
# from nemo.utils.memory_profile_analyzer import peak_memory_analysis_activation, peak_memory_analysis_weight, peak_memory_analysis_oom
from nemo.utils.memory_profile_analyzer import peak_memory_analysis

__all__ = ['ModelPT']
Expand Down
15 changes: 14 additions & 1 deletion nemo/utils/memory_profile_analyzer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import pickle
import os
import csv
Expand All @@ -6,7 +20,6 @@
from scipy.signal import find_peaks, peak_prominences
from nemo.utils import logging

# __all__ = ['peak_memory_analysis_weight', 'peak_memory_analysis_activation', 'peak_memory_analysis_oom']
_all__ = ['peak_memory_analysis']

GB_SIZE = 1024*1024*1024
Expand Down

0 comments on commit f246513

Please sign in to comment.