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
Traceback (most recent call last):
File "D:/pycharmprojects/wiki2bio-master/Main.py", line 241, in
main()
File "D:/pycharmprojects/wiki2bio-master/Main.py", line 234, in main
train(sess, dataloader, model)
File "D:/pycharmprojects/wiki2bio-master/Main.py", line 99, in train
loss += model(x, sess)
File "D:\pycharmprojects\wiki2bio-master\SeqUnit_1.py", line 411, in call
loss, _ = sess.run([self.mean_loss, self.train_op],
AttributeError: 'SeqUnit' object has no attribute 'mean_loss'
def call(self, x, sess):
loss, _ = sess.run([self.mean_loss, self.train_op],
{self.encoder_input: x['enc_in'], self.encoder_len: x['enc_len'],
self.encoder_field: x['enc_fd'], self.encoder_pos: x['enc_pos'],
self.encoder_rpos: x['enc_rpos'], self.decoder_input: x['dec_in'],
self.decoder_len: x['dec_len'], self.decoder_output: x['dec_out']})
return loss
Hello, I have been debugging this error for a long time, but it has always been wrong. I would like to ask if you can help me, thank you。
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "D:/pycharmprojects/wiki2bio-master/Main.py", line 241, in
main()
File "D:/pycharmprojects/wiki2bio-master/Main.py", line 234, in main
train(sess, dataloader, model)
File "D:/pycharmprojects/wiki2bio-master/Main.py", line 99, in train
loss += model(x, sess)
File "D:\pycharmprojects\wiki2bio-master\SeqUnit_1.py", line 411, in call
loss, _ = sess.run([self.mean_loss, self.train_op],
AttributeError: 'SeqUnit' object has no attribute 'mean_loss'
def call(self, x, sess):
loss, _ = sess.run([self.mean_loss, self.train_op],
{self.encoder_input: x['enc_in'], self.encoder_len: x['enc_len'],
self.encoder_field: x['enc_fd'], self.encoder_pos: x['enc_pos'],
self.encoder_rpos: x['enc_rpos'], self.decoder_input: x['dec_in'],
self.decoder_len: x['dec_len'], self.decoder_output: x['dec_out']})
return loss
Hello, I have been debugging this error for a long time, but it has always been wrong. I would like to ask if you can help me, thank you。
The text was updated successfully, but these errors were encountered: