(x, y, axis=-1, name=None)
| 1399 | |
| 1400 | |
| 1401 | def _add_with_axis(x, y, axis=-1, name=None): |
| 1402 | # opt performance, only dynamic mode needs reshape |
| 1403 | if in_dynamic_or_pir_mode(): |
| 1404 | return _elementwise_op_with_axis(x, y, axis, name, "add") |
| 1405 | else: |
| 1406 | op_type = 'elementwise_add' |
| 1407 | return _elementwise_op(LayerHelper(op_type, **locals())) |
| 1408 | |
| 1409 | |
| 1410 | def _subtract_with_axis(x, y, axis=-1, name=None): |
no test coverage detected