MCPcopy Create free account
hub / github.com/pytorch/tutorials / true_branch

Function true_branch

intermediate_source/torch_compile_tutorial.py:375–376  ·  view source on GitHub ↗
(y)

Source from the content-addressed store, hash-verified

373 x = a / (torch.abs(a) + 1)
374
375 def true_branch(y):
376 return y * -1
377
378 def false_branch(y):
379 # NOTE: torch.cond doesn't allow aliased outputs

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected