(x, y, axis=-1, name=None)
| 1426 | |
| 1427 | |
| 1428 | def _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 | |
| 1437 | def reduce_as(x: Tensor, target: Tensor, name: str | None = None) -> Tensor: |
nothing calls this directly
no test coverage detected