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

Function _divide_with_axis

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

Source from the content-addressed store, hash-verified

1426
1427
1428def _divide_with_axis(x, y, axis=-1, name=None):
1429 # opt performance, only dynamic mode needs reshape
1430 if in_dynamic_or_pir_mode():
1431 return _elementwise_op_with_axis(x, y, axis, name, "divide")
1432 else:
1433 op_type = 'elementwise_div'
1434 return _elementwise_op(LayerHelper(op_type, **locals()))
1435
1436
1437def reduce_as(x: Tensor, target: Tensor, name: str | None = None) -> Tensor:

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