mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-23 10:30:03 +00:00
[hotfix] fixed bugs in ShardStrategy and PcieProfiler (#394)
This commit is contained in:
@@ -79,7 +79,7 @@ class PcieProfiler(BaseProfiler):
|
||||
if self.profiler.enabled:
|
||||
events = self.profiler.function_events
|
||||
for event in events:
|
||||
if event.name == "aten::_to_copy":
|
||||
if event.name == "aten::copy_":
|
||||
t_shape = event.input_shapes[0]
|
||||
if len(t_shape) == 0 or event.cuda_time_total == 0:
|
||||
continue
|
||||
|
Reference in New Issue
Block a user