Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/tutorials
/ do_some_doubling
Function
do_some_doubling
beginner_source/introyt/autogradyt_tutorial.py:647–651 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
645
646
647
def
do_some_doubling(x):
648
y = x * 2
649
while
y.data.norm() < 1000:
650
y = y * 2
651
return
y
652
653
654
inputs = torch.randn(3)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected