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

Function foo2

intermediate_source/inductor_debug_cpu.py:286–290  ·  view source on GitHub ↗
(x1, x2)

Source from the content-addressed store, hash-verified

284from torch._dynamo.utils import same
285
286def foo2(x1, x2):
287 a = torch.neg(x1)
288 b = torch.maximum(x2, a)
289 y = torch.cat([b], dim=0)
290 return y
291
292x1 = torch.randn((1, 8), dtype=torch.float32)
293x2 = torch.randn((8390, 8), dtype=torch.float32)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected