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

Contributor Book: Fix the link of primitive types in the "Serialization" page #2362

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

towerpark
Copy link
Contributor

Pull Request Template

Checklist

  • Confirmed that run-checks all script has been executed.
    (Executed with DISABLE_WGPU=1 because currently my development environment is in a container with no access to a physical GPU)
  • Made sure the book is up to date with changes in this PR.

Related Issues/PRs

None.

Changes

  • Problems:
    The link of primitive types in the "Serialization" page is an intra-doc link pointing to a place that doesn't exist. Also its name primitives types doesn't sound very natural (English is not my first language, so please correct me if I'm wrong).

  • Changes:
    Replace the intra-doc link with an external one pointing to the source code file in "burn-core", and change its name to primitive types.

Testing

  • Self-reviewed the change by git diff.
  • Checked the affected part by reading it in a browser.

* Change the intra-doc link to an external one
  Keep consistent with other links in the book by referring to a
  specific commit instead of "main". Since there is no single commit
  used by all the links, simply pick the latest commit being used in
  pages under the "project-architecture" directory.

* Better the wording of the link name
@towerpark towerpark changed the title Fix the link of primitive types in the "Serialization" page Contributor Book: Fix the link of primitive types in the "Serialization" page Oct 13, 2024
@@ -40,8 +40,8 @@ which field is a parameter or a constant, or we assume that each field implement

The second solution was chosen as it simplifies the code generation and reduces the size of the user
API. This means that the `Module` trait should be implemented by
[primitives types](./burn-core/src/module/param/primitive.rs). The following diagrams highlight the
main types and traits used in the solution.
[primitive types](https://github.com/tracel-ai/burn/blob/6d96e8d8086d2309c425f2c8a43a8246f8c454d2/crates/burn-core/src/module/param/primitive.rs).
Copy link
Member

Choose a reason for hiding this comment

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

I would use the main branch for the link, otherwise it could become outdated. And for an architecture overview, that's fine not keeping up with versions.

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.

2 participants