examples
examples copied to clipboard
problems in "densenet" and "nmt_with_attention"
tensorflow version:2.16.1 python version:3.11.4
- densenet
- path:examples/tensorflow_examples/models/densenet
- command:python densent_test.py
- problem:TypeError: AveragePooling2D.init() missing 1 required positional argument: 'pool_size'
- change:change the line "self. avg_pool = tf.keras.layers.AveragePooling2D(data_format=data_format)" in the file “densenet.py” to "self. avg_pool = tf.keras.layers.AveragePooling2D(pool_size(2,2),data_format=data_format)"
- nmt_with_attention
- path:examples/tensorflow_examples/models/nmt_with_attention
- command:python nmt_test.py
- problem:AttributeError: 'Mean' object has no attribute 'reset_states'
- change:change "reset_states()" in the file "train.py" to "reset_state()"
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.