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

Function neg1

intermediate_source/inductor_debug_cpu.py:59–60  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

57# The correct implementation of ``neg`` in the ``cpp`` codegen is as follows:
58
59def neg1(x):
60 return f"decltype({x})(-{x})"
61
62######################################################################
63# In order to demonstrate the debugging, we will modify the function to a wrong one later.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected