Home > other >  About tensorflow 1.14.0 a code problem
About tensorflow 1.14.0 a code problem

Time:10-09


Has the following definition of loss function code:
Losses=tf. Contrib. Legacy_seq2seq. Sequece_loss_by_example (
[tf. Reshape (self. Mr Pred, [1], name='reshape_pred')],
[tf. Reshape (self. Ys, [1], name='reshape_target')],
([[tf. 'ones self. Self batch_size *. N_steps], dtype=tf. Float32)],
Average_across_timesteps=True,
Softmax_loss_function=self msr_error,
Name='losses')
But reported the error:

AttributeError: module 'tensorflow. Contrib. Legacy_seq2seq' has no attribute
'sequece_loss_by_example'
Don't know is what reason, feeling and tensorflow version, my version is 1.14.0, anyone who can help me to solve it? Thank you very much!

CodePudding user response:

Cuda version is too high, you need to cut down the cuda version
  • Related