Skip to content

Conversation

RenuPatelGoogle
Copy link
Contributor

Updated and replaced the deprecated attributes max_tokens with "num_tokens" and vocab_size with "vocabulary_size" to remove the warnings from output.

Updated and replaced the deprecated attributes max_tokens with "num_tokens" and vocab_size with "vocabulary_size" to remove the warnings from output.
@github-actions
Copy link

Preview

Preview and run these notebook edits with Google Colab: Rendered notebook diffs available on ReviewNB.com.

Format and style

Use the TensorFlow docs notebook tools to format for consistent source diffs and lint for style:
$ python3 -m pip install -U --user git+https://github.com/tensorflow/docs

$ python3 -m tensorflow_docs.tools.nbfmt notebook.ipynb
$ python3 -m tensorflow_docs.tools.nblint --arg=repo:tensorflow/docs notebook.ipynb
If commits are added to the pull request, synchronize your local branch: git pull origin patch-13

@github-actions github-actions bot added the lgtm Community-added approval label Apr 14, 2022
Copy link
Contributor

@8bitmp3 8bitmp3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for checking the API. Can confirm num_tokens is the correct arg. https://www.tensorflow.org/api_docs/python/tf/keras/layers/CategoryEncoding?hl=en

@8bitmp3 8bitmp3 added the ready to pull Start merge process label Apr 14, 2022
@copybara-service copybara-service bot merged commit 777bbba into tensorflow:master Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Community-added approval ready to pull Start merge process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants