Skip to content

Lint (deprecated) flax.nn.base (NN base modules for JAX)#681

Merged
copybara-service[bot] merged 2 commits into
google:masterfrom
8bitmp3:patch-1
Dec 3, 2020
Merged

Lint (deprecated) flax.nn.base (NN base modules for JAX)#681
copybara-service[bot] merged 2 commits into
google:masterfrom
8bitmp3:patch-1

Conversation

@8bitmp3
Copy link
Copy Markdown
Contributor

@8bitmp3 8bitmp3 commented Nov 26, 2020

Hello Flax team, I was just studying https://flax.readthedocs.io/en/latest/flax.nn.html?highlight=initi_by_shape#flax.nn.Module.init_by_shape and decided to lint flax.nn.base to improve the docs. Also, one of the examples isn't currently rendering well, so I made a quick fix (Example::):

image

Can you let me know if there's a general convention for writing "Module" (a "thing", not an API, such as Module)? I noticed, the API docs use both "module" and "Module".

Cheers 👍

@google-cla google-cla Bot added the cla: yes label Nov 26, 2020
@8bitmp3 8bitmp3 changed the title Link flax.nn.base (NN base modules for JAX) Lint (deprecated) flax.nn.base (NN base modules for JAX) Nov 26, 2020
Copy link
Copy Markdown
Contributor

@jheek jheek left a comment

Choose a reason for hiding this comment

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

Thanks, I just found one newly introduced typo

Comment thread flax/nn/base.py Outdated
Comment thread flax/nn/base.py Outdated
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #681 (e875ef8) into master (e00f99a) will increase coverage by 0.00%.
The diff coverage is 50.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #681   +/-   ##
=======================================
  Coverage   80.66%   80.67%           
=======================================
  Files          56       56           
  Lines        4267     4269    +2     
=======================================
+ Hits         3442     3444    +2     
  Misses        825      825           
Impacted Files Coverage Δ
flax/nn/base.py 92.46% <50.00%> (ø)
flax/linen/transforms.py 94.33% <0.00%> (+0.10%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e00f99a...e875ef8. Read the comment docs.

@copybara-service copybara-service Bot merged commit b275ff5 into google:master Dec 3, 2020
@8bitmp3 8bitmp3 deleted the patch-1 branch December 4, 2020 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants