Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dialects: (prob) add finite support distribution #10

Merged
merged 3 commits into from
Nov 8, 2024

Conversation

alexarice
Copy link
Collaborator

Adds operation for an operation that represents probability distributions with finite support.


// CHECK: %[[#first:]], %[[#second:]], %[[#third:]] = "test.op"() : () -> (i32, i32, i32)
%4, %5, %6 = "test.op"() : () -> (i32, i32, i32)
// CHECK-NEXT: %{{.*}} = prob.fin_supp [ 0.30000000000000004 of %[[#first]], else %[[#second]] ] : i32
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oof

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Could convert the test to (negative) powers of 2

@alexarice alexarice self-assigned this Nov 7, 2024
@alexarice alexarice added the dialects Changes on the dialects label Nov 7, 2024
@alexarice alexarice requested a review from kimxworrall November 7, 2024 17:09
@alexarice alexarice merged commit ae7cd0a into main Nov 8, 2024
5 checks passed
@alexarice alexarice deleted the alexarice/fin-supp branch December 3, 2024 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dialects Changes on the dialects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant