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

Function foo1

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

Source from the content-addressed store, hash-verified

42import torch
43
44def foo1(x1, x2):
45 a = torch.neg(x1)
46 b = torch.maximum(x2, a)
47 y = torch.cat([b], dim=0)
48 return y
49
50x1 = torch.randint(256, (1, 8), dtype=torch.uint8)
51x2 = torch.randint(256, (8390, 8), dtype=torch.uint8)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected