e81f8895045ace5c59d68d26e2bcbbcd0c203793,se3_cnn/utils/time_logging.py,,end,#Any#Any#,15
Before Change
def end(name, begin_time):
global DATA_TIMES
torch.cuda.synchronize()
end_time = perf_counter()
delta = end_time - begin_time
try:
After Change
def end(name, begin_time):
global DATA_TIMES
if torch.cuda.is_available():
torch.cuda.synchronize()
end_time = perf_counter()
delta = end_time - begin_time
try:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: mariogeiger/se3cnn
Commit Name: e81f8895045ace5c59d68d26e2bcbbcd0c203793
Time: 2017-07-31
Author: geiger.mario@gmail.com
File Name: se3_cnn/utils/time_logging.py
Class Name:
Method Name: end
Project Name: mariogeiger/se3cnn
Commit Name: e81f8895045ace5c59d68d26e2bcbbcd0c203793
Time: 2017-07-31
Author: geiger.mario@gmail.com
File Name: se3_cnn/utils/time_logging.py
Class Name:
Method Name: start
Project Name: horovod/horovod
Commit Name: e9dba2bc06153217b3dd066eb5063d1ec15e0c8f
Time: 2021-03-09
Author: tgaddair@gmail.com
File Name: horovod/torch/optimizer.py
Class Name: _DistributedOptimizer
Method Name: synchronize