Skip to content

Conversation

xadupre
Copy link
Contributor

@xadupre xadupre commented May 22, 2023

Description

The function implementation of CastLike does not propagate the attribute saturate. This PR fixes it and make the changes in the reference implementation to check the function implementation is working. This PR fixes two issues:

  1. function implementation of CastLike (19)
  2. reference implementation working context dependent function

By default, the reference implementation choose a kernel if there is one, even if the operator defines an implementation. The PR introduces a mechanism to force the use of the kernel and expand the operator by its function. It delays that when the function is context dependant. It is then done when the node is executed and its inputs known.

Signed-off-by: xadupre <xadupre@microsoft.com>
@xadupre xadupre changed the title Fixes a missing attribute in function implementation of CastList Fixes a missing attribute in function implementation of CastLike May 22, 2023
xadupre added 7 commits May 22, 2023 18:35
Signed-off-by: xadupre <xadupre@microsoft.com>
Signed-off-by: xadupre <xadupre@microsoft.com>
Signed-off-by: xadupre <xadupre@microsoft.com>
Signed-off-by: xadupre <xadupre@microsoft.com>
Signed-off-by: xadupre <xadupre@microsoft.com>
Signed-off-by: xadupre <xadupre@microsoft.com>
@xadupre xadupre marked this pull request as ready for review May 23, 2023 11:19
@xadupre xadupre requested review from a team as code owners May 23, 2023 11:19
@jcwchen jcwchen added the run release CIs Use this label to trigger release tests in CI label May 26, 2023
@xadupre xadupre enabled auto-merge (squash) June 19, 2023 07:50
@xadupre xadupre merged commit e7e8aa7 into onnx:main Jun 19, 2023
adityagoel4512 pushed a commit to adityagoel4512/onnx that referenced this pull request Jun 19, 2023
…x#5246)

### Description
The function implementation of CastLike does not propagate the attribute
*saturate*. This PR fixes it and make the changes in the reference
implementation to check the function implementation is working. This PR
fixes two issues:

1. function implementation of CastLike (19)
2. reference implementation working context dependent function

By default, the reference implementation choose a kernel if there is
one, even if the operator defines an implementation. The PR introduces a
mechanism to force the use of the kernel and expand the operator by its
function. It delays that when the function is context dependant. It is
then done when the node is executed and its inputs known.

---------

Signed-off-by: xadupre <xadupre@microsoft.com>
Signed-off-by: Aditya Goel <agoel4512@gmail.com>
adityagoel4512 pushed a commit to adityagoel4512/onnx that referenced this pull request Jul 28, 2023
…x#5246)

### Description
The function implementation of CastLike does not propagate the attribute
*saturate*. This PR fixes it and make the changes in the reference
implementation to check the function implementation is working. This PR
fixes two issues:

1. function implementation of CastLike (19)
2. reference implementation working context dependent function

By default, the reference implementation choose a kernel if there is
one, even if the operator defines an implementation. The PR introduces a
mechanism to force the use of the kernel and expand the operator by its
function. It delays that when the function is context dependant. It is
then done when the node is executed and its inputs known.

---------

Signed-off-by: xadupre <xadupre@microsoft.com>
Signed-off-by: Aditya Goel <agoel4512@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run release CIs Use this label to trigger release tests in CI
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants