Skip to content

Commit f0511be

Browse files
committed
finalize code
1 parent 4a77199 commit f0511be

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

Generate_CFG_dataset/cfg.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import io
1010
import linecache
1111
import random
12-
import ipdb
1312

1413
# TODO later: graph
1514
'''
@@ -1131,7 +1130,6 @@ def removeCommentsAndDocstrings(self):
11311130
parser.formatCode()
11321131
cfg = CFGVisitor().build(filename, ast.parse(parser.script))
11331132
cfg.clean()
1134-
# ipdb.set_trace()
11351133
cfg.track_execution()
11361134
cfg.show(filepath)
11371135

model.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,8 @@ def forward(self, x, edges, node_lens=None, token_lens=None, target=None):
159159

160160
# B, max_node, H -> B, max_node
161161
output = torch.sigmoid(self.fc_output(h_f)) #
162-
# ipdb.set_trace()
163162
if self.opt.extra_aggregate:
164-
# import ipdb; ipdb.set_trace()
165163
output = torch.bmm(matrix, output)
166-
# import ipdb; ipdb.set_trace()
167164
return output
168165

169166
@staticmethod

0 commit comments

Comments
 (0)