TypeError: dropout_v2() got an unexpected keyword argument 'keep_prob'
时间: 2023-10-06 09:10:42 浏览: 36
TypeError: Unexpected keyword argument passed to optimizer: learning_rate 解决方法
This error message indicates that the function dropout_v2() is being called with an unexpected keyword argument 'keep_prob'. This may be caused by using an outdated version of the TensorFlow library or by using an incorrect syntax when calling the function.
To resolve this issue, you can try updating your TensorFlow library to the latest version or modifying the function call to use the correct syntax for the version you are using. For example, if you are using TensorFlow 2.0 or later, you should use the argument 'rate' instead of 'keep_prob' when calling the dropout_v2() function.
阅读全文