examples icon indicating copy to clipboard operation
examples copied to clipboard

problems in "densenet" and "nmt_with_attention"

Open 6eanut opened this issue 1 year ago • 1 comments

tensorflow version:2.16.1 python version:3.11.4

- densenet

  1. path:examples/tensorflow_examples/models/densenet
  2. command:python densent_test.py
  3. problem:TypeError: AveragePooling2D.init() missing 1 required positional argument: 'pool_size'
  4. 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

  1. path:examples/tensorflow_examples/models/nmt_with_attention
  2. command:python nmt_test.py
  3. problem:AttributeError: 'Mean' object has no attribute 'reset_states'
  4. change:change "reset_states()" in the file "train.py" to "reset_state()"

6eanut avatar Jun 12 '24 07:06 6eanut

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.

google-cla[bot] avatar Jun 12 '24 07:06 google-cla[bot]