Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/tutorials
/ f1
Function
f1
intermediate_source/torch_compile_tutorial.py:238–241 ·
view source on GitHub ↗
(x, y)
Source
from the content-addressed store, hash-verified
236
237
238
def
f1(x, y):
239
if
x.sum() < 0:
240
return
-y
241
return
y
242
243
244
# Test that `fn1` and `fn2` return the same result, given the same arguments `args`.
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected