MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / square

Function square

imperative/python/megengine/xla/rules/elemwise.py:268–269  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

266
267
268def square(x):
269 return mul(x, x)
270
271
272def abs_grad(x, dy):

Callers

nothing calls this directly

Calls 1

mulFunction · 0.50

Tested by

no test coverage detected