Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems in "densenet" and "nmt_with_attention" #492

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

6eanut
Copy link

@6eanut 6eanut commented Jun 12, 2024

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()"

在AveragePooling2D中添加pool_size属性
reset_states改为reset_state
@6eanut 6eanut requested a review from a team as a code owner June 12, 2024 07:08
Copy link

google-cla bot commented Jun 12, 2024

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-ml-butler google-ml-butler bot added the size:XS CL Change Size: Extra Small label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review size:XS CL Change Size: Extra Small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants