Skip to content

Adds tflite stablehlo_case_op - #84

Merged
amrinfathima-mcw merged 2 commits into
tflite_stablehlo_case_opfrom
amrin_tflite_shlo_case_op
Oct 25, 2024
Merged

amrinfathima-mcw merged 2 commits into
tflite_stablehlo_case_opfrom
amrin_tflite_shlo_case_op

Conversation

@amrinfathima-mcw

Copy link
Copy Markdown
Collaborator
  • Adds stablehlo_case op implementation
  • Adds stablehlo_case op unit tests

 - Adds stablehlo_case op implementation
 - Adds stablehlo_case op unit tests
@amrinfathima-mcw amrinfathima-mcw self-assigned this Sep 5, 2024
STABLEHLO_RNG_BIT_GENERATOR = 204,
REDUCE_WINDOW = 205 (deprecated),
STABLEHLO_COMPOSITE = 206, // WARNING: No runtime support
STABLEHLO_CASE = 208,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skipped a number here

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I'll make the necessary changes. By the way, is there a way to determine the required headers for cc file? I noticed it compiles without some headers, like tensorflow/lite/builtin_ops.h, which raises some questions.

// See the stablehlo spec for the explanation of the attributes:
// https://github.com/openxla/stablehlo/blob/main/docs/spec.md#case
int32_t branch_subgraph_indices[TFLITE_STABLEHLO_CASE_PARAMS_MAX_BRANCHES_COUNT];
int num_branches;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

num_branches should be an unsigned type

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

@amrinfathima-mcw
amrinfathima-mcw merged commit a2b7688 into tflite_stablehlo_case_op Oct 25, 2024
amrinfathima-mcw added a commit that referenced this pull request Oct 25, 2024
* Adds tflite stablehlo_case_op

 - Adds stablehlo_case op implementation
 - Adds stablehlo_case op unit tests
amrinfathima-mcw added a commit that referenced this pull request Oct 25, 2024
* Adds tflite stablehlo_case_op

 - Adds stablehlo_case op implementation
 - Adds stablehlo_case op unit tests
amrinfathima-mcw added a commit that referenced this pull request Oct 25, 2024
* Adds tflite stablehlo_case_op

 - Adds stablehlo_case op implementation
 - Adds stablehlo_case op unit tests
amrinfathima-mcw added a commit that referenced this pull request Oct 25, 2024
* Adds tflite stablehlo_case_op

 - Adds stablehlo_case op implementation
 - Adds stablehlo_case op unit tests
amrinfathima-mcw added a commit that referenced this pull request Oct 30, 2024
* Adds tflite stablehlo_case_op

 - Adds stablehlo_case op implementation
 - Adds stablehlo_case op unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants