Skip to content

Conversation

@avik-pal
Copy link
Collaborator

@avik-pal avik-pal commented Nov 10, 2025

precision issue will take a look later

@avik-pal avik-pal requested a review from wsmoses November 10, 2025 00:42
@avik-pal avik-pal marked this pull request as draft November 10, 2025 01:14
@avik-pal avik-pal force-pushed the ap/fd branch 3 times, most recently from 9afcb9a to 74f08fe Compare November 12, 2025 18:38
resargprefix = gensym("finitediffresarg")

# TODO: can we detect and prevent using functions that mutate their arguments?
mlir_fn_res = TracedUtils.make_mlir_fn(
Copy link
Member

Choose a reason for hiding this comment

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

do we need to do the full make_mlir_fn here, or can we reuse the equivalent of traced call or traced functions to achieve the same effect?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am using make_mlir_fn mostly to linearlize the arguments. not sure how to use traced_call here though

Copy link
Member

Choose a reason for hiding this comment

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

ah so it was linearization, not efficiency

@avik-pal avik-pal changed the title fix: finite diff gradient accidental type promotion fix: finite diff gradient accidental type promotion + generalize inputs Nov 15, 2025
avik-pal and others added 2 commits November 14, 2025 21:21
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@avik-pal avik-pal marked this pull request as ready for review November 15, 2025 02:49
@avik-pal avik-pal requested a review from wsmoses November 15, 2025 03:29
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.

3 participants