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

CustomRules: fix body check #1896

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/rules/customrules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -977,15 +977,15 @@ end
!(aug_RT === Union{})
TapeT = EnzymeRules.tape_type(aug_RT)
elseif (aug_RT isa UnionAll) &&
(aug_RT <: EnzymeRules.AugmentedReturn) &&
(aug_RT <: EnzymeRules.AugmentedReturn) && hasfield(typeof(aug_RT.body), :name) &&
aug_RT.body.name == EnzymeCore.EnzymeRules.AugmentedReturn.body.body.body.name
if aug_RT.body.parameters[3] isa TypeVar
TapeT = aug_RT.body.parameters[3].ub
else
TapeT = Any
end
elseif (aug_RT isa UnionAll) &&
(aug_RT <: EnzymeRules.AugmentedReturnFlexShadow) &&
(aug_RT <: EnzymeRules.AugmentedReturnFlexShadow) && hasfield(typeof(aug_RT.body), :name) &&
aug_RT.body.name ==
EnzymeCore.EnzymeRules.AugmentedReturnFlexShadow.body.body.body.name
if aug_RT.body.parameters[3] isa TypeVar
Expand Down
Loading