Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c3aad2d

Browse files
authoredSep 1, 2018
Update regionemb.py
1 parent 09ebb36 commit c3aad2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎regionemb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ def evaluate(data,batch_size):
127127
cnt = 0
128128
for epoch_percent, batch_slots in batch_iter(data,batch_size,shuffle=False):
129129
batch_sequence, batch_label = zip(*batch_slots)
130-
batch_sequence = nd.array(batch_sequence,ctx)
131130
batch_label = nd.array(batch_label,ctx)
131+
aligned_seq,trimed_seq,mask = batch_process(batch_sequence,ctx)
132132
output = net(aligned_seq,trimed_seq,mask)
133133
loss = SCE(output,batch_label)
134134
acc_test += accuracy(output,batch_label,batch_size)

0 commit comments

Comments
 (0)
Please sign in to comment.