MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / _subtract_with_axis

Function _subtract_with_axis

python/paddle/tensor/math.py:1410–1416  ·  view source on GitHub ↗
(x, y, axis=-1, name=None)

Source from the content-addressed store, hash-verified

1408
1409
1410def _subtract_with_axis(x, y, axis=-1, name=None):
1411 # opt performance, only dynamic mode needs reshape
1412 if in_dynamic_or_pir_mode():
1413 return _elementwise_op_with_axis(x, y, axis, name, "subtract")
1414 else:
1415 op_type = 'elementwise_sub'
1416 return _elementwise_op(LayerHelper(op_type, **locals()))
1417
1418
1419def _multiply_with_axis(x, y, axis=-1, name=None):

Callers

nothing calls this directly

Calls 4

in_dynamic_or_pir_modeFunction · 0.85
_elementwise_opFunction · 0.85
LayerHelperClass · 0.85

Tested by

no test coverage detected