-
Notifications
You must be signed in to change notification settings - Fork 6.8k
onnx broadcast ops fixes #13604
onnx broadcast ops fixes #13604
Conversation
@mxnet-label-bot add[ONNX, pr-awaiting-review] |
@Roshrini Thanks for the contribution, seems one of the onnx unit test failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks,
Can we please add test case for invoking this path of broadcast operation.
@Roshrini could you address the comment? Thanks! |
47b059d
to
e6e74ee
Compare
@sandeep-krishnamurthy This path of broadcast ops is used by multiple models which are already tested in CI like inception, etc. Addressed comments. Can you take a look again? Thanks! |
4b61331
to
44eb0cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
if inputs[0].name.startswith(op_name): | ||
op_value = _fix_broadcast(current_op_name, inputs, broadcast_axis, proto_obj) | ||
return op_value, new_attr, inputs | ||
return current_op_name, new_attr, inputs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we are losing info about attrs here? We always return empty from this function. Sorry couldn't understand this logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onnx attrs can have "broadcast/consumed_inputs" as input according to old onnx opset.. If broadcast is mentioned, we check that in line 253. But MXNet doesnt have these inputs.. broadcast ops in mxnet have empty attr. So by default passing empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
* broadcasting fixes * fix * addressing comments * fix * fix
* broadcasting fixes * fix * addressing comments * fix * fix
* broadcasting fixes * fix * addressing comments * fix * fix
* broadcasting fixes * fix * addressing comments * fix * fix
* broadcasting fixes * fix * addressing comments * fix * fix
* broadcasting fixes * fix * addressing comments * fix * fix
Description
Fixes #13138
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.