You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I run:
def debug(self, model, sliced_data, output):
for i, item in enumerate(tqdm.tqdm(sliced_data)):
(, history), = model.compute_loss([item], debug=True)
output.write(
json.dumps({
'index': i,
'history': history,
}) + '\n')
output.flush()
def compute_loss(self, enc_input, example, desc_enc, debug):
if not (self.enumerate_order and self.training):
mle_loss = self.compute_mle_loss(enc_input, example, desc_enc, debug)
else:
mle_loss = self.compute_loss_from_all_ordering(enc_input, example, desc_enc, debug)
if self.use_align_loss:
align_loss = self.compute_align_loss(desc_enc, example)
**return mle_loss + align_loss**
return mle_loss
This error appeared.I don't know how to fix it
The text was updated successfully, but these errors were encountered:
when I run:
def debug(self, model, sliced_data, output):
for i, item in enumerate(tqdm.tqdm(sliced_data)):
(, history), = model.compute_loss([item], debug=True)
output.write(
json.dumps({
'index': i,
'history': history,
}) + '\n')
output.flush()
This error appeared.I don't know how to fix it
The text was updated successfully, but these errors were encountered: