Skip to content

fix nnx promote_dtype docstring#5504

Open
mohsinm-dev wants to merge 1 commit into
google:mainfrom
mohsinm-dev:fix-nnx-promote-dtype-docstring
Open

fix nnx promote_dtype docstring#5504
mohsinm-dev wants to merge 1 commit into
google:mainfrom
mohsinm-dev:fix-nnx-promote-dtype-docstring

Conversation

@mohsinm-dev

Copy link
Copy Markdown
Contributor

Fix the promote_dtype docstring in flax/nnx/nn/dtypes.py to reflect the actual signature.

The docstring incorrectly documented *args (variadic) but the function takes a single tuple: args: T, /. Added tests for the container-based API.

Fixes #5493

@@ -0,0 +1,40 @@
# Copyright 2024 The Flax Authors.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's remove this test file, it is unnecessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flax.nnx promote_dtype raises TypeError on a single None or 0-d scalar (signature contradicts its *args docstring)

2 participants