Skip to content

Commit

Permalink
fix bug in tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
liukai committed Sep 30, 2022
1 parent 1bcc4da commit 68d8040
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mmrazor/models/task_modules/tracer/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ def parse_cat(tracer, grad_fn, module2name, param2module, cur_path,
tracer.backward_trace(parent, module2name, param2module, Path(),
sub_path_list, visited, shared_module)
sub_path_lists.append(sub_path_list)
cur_path.append(PathConcatNode(name, sub_path_lists))
cur_path.append(PathConcatNode(name, sub_path_lists))

result_paths.append(copy.deepcopy(cur_path))
cur_path.pop(-1)
result_paths.append(copy.deepcopy(cur_path))
cur_path.pop(-1)


def parse_norm(tracer, grad_fn, module2name, param2module, cur_path,
Expand Down

0 comments on commit 68d8040

Please sign in to comment.