@@ -134,7 +134,7 @@ def nmtmodel_forward(self, opt, source_l=3, bsize=1):
134
134
135
135
test_src , test_tgt , test_length = self .get_batch (source_l = source_l ,
136
136
bsize = bsize )
137
- outputs , attn , _ , _ = model (test_src , test_tgt , test_length )
137
+ outputs , attn = model (test_src , test_tgt , test_length )
138
138
outputsize = torch .zeros (source_l - 1 , bsize , opt .dec_rnn_size )
139
139
# Make sure that output has the correct size and type
140
140
self .assertEqual (outputs .size (), outputsize .size ())
@@ -168,7 +168,7 @@ def imagemodel_forward(self, opt, tgt_l=2, bsize=1, h=15, w=17):
168
168
h = h , w = w ,
169
169
bsize = bsize ,
170
170
tgt_l = tgt_l )
171
- outputs , attn , _ , _ = model (test_src , test_tgt , test_length )
171
+ outputs , attn = model (test_src , test_tgt , test_length )
172
172
outputsize = torch .zeros (tgt_l - 1 , bsize , opt .dec_rnn_size )
173
173
# Make sure that output has the correct size and type
174
174
self .assertEqual (outputs .size (), outputsize .size ())
@@ -206,7 +206,7 @@ def audiomodel_forward(self, opt, tgt_l=7, bsize=3, t=37):
206
206
sample_rate = opt .sample_rate ,
207
207
window_size = opt .window_size ,
208
208
t = t , tgt_l = tgt_l )
209
- outputs , attn , _ , _ = model (test_src , test_tgt , test_length )
209
+ outputs , attn = model (test_src , test_tgt , test_length )
210
210
outputsize = torch .zeros (tgt_l - 1 , bsize , opt .dec_rnn_size )
211
211
# Make sure that output has the correct size and type
212
212
self .assertEqual (outputs .size (), outputsize .size ())
0 commit comments