⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@leomilano
Copy link
Contributor

@leomilano leomilano commented Jan 20, 2026

Fixes suggestion in #3597

Description

After closing #3597 , it was pointed out by a community member that while the changes made sense in isolation, they broke the flow of the tutorial overall. In particular, the tutorial develops a number of examples around sin(x). So, this is mostly a one-liner to revert to sin(x) instead of exp(x).

As agreed in the discussion in #3597 , I also suggest in comments experimentation with exp(x) or other functions with faster polynomial convergence.

The learning rate had to be reduced for this by a factor 10 in order to converge with autograd.

I also fixed a trivial documentation typo.

Checklist

  • The issue that is being fixed is referred in the description (see above "Fixes #ISSUE_NUMBER")
  • Only one issue is addressed in this pull request
  • Labels from the issue that this PR is fixing are added to this pull request
  • [x ] No unnecessary issues are included into this pull request.

cc @albanD @jbschlosser

@pytorch-bot
Copy link

pytorch-bot bot commented Jan 20, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/3736

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 35378eb with merge base b863c3b (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the cla signed label Jan 20, 2026
@svekars svekars added the core Tutorials of any level of difficulty related to the core pytorch functionality label Jan 20, 2026
@AlannaBurke
Copy link
Contributor

looks good from a docs point of view, have someone approve the content.

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

Labels

cla signed core Tutorials of any level of difficulty related to the core pytorch functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants