Skip to content

Commit

Permalink
[converter] stop tracking ops with used constants (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc123 authored Sep 7, 2023
1 parent 8db9029 commit 075b97d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tinynn/converter/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,10 @@ def init_operations(self):
if self.common_graph.has_nested_names(n):
nested_names = self.common_graph.get_list_expanded_names(n)
for x in nested_names:
if x in self.common_graph.tensor_map:
if x in self.common_graph.tensor_map and self.common_graph.tensor_map[x].buffer is None:
no_track_flag = False
break
elif n in self.common_graph.tensor_map:
elif n in self.common_graph.tensor_map and self.common_graph.tensor_map[n].buffer is None:
no_track_flag = False
break
if no_track_flag:
Expand Down

0 comments on commit 075b97d

Please sign in to comment.