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

Function _multiply_with_axis

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

Source from the content-addressed store, hash-verified

1417
1418
1419def _multiply_with_axis(x, y, axis=-1, name=None):
1420 # opt performance, only dynamic mode needs reshape
1421 if in_dynamic_or_pir_mode():
1422 return _elementwise_op_with_axis(x, y, axis, name, "multiply")
1423 else:
1424 op_type = 'elementwise_mul'
1425 return _elementwise_op(LayerHelper(op_type, **locals()))
1426
1427
1428def _divide_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