Skip to content

Commit

Permalink
nospecialize on tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed Jan 9, 2024
1 parent 67036a8 commit 161e5f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rule_definition_tools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,13 @@ function _nondiff_frule_expr(__source__, primal_sig_parts, primal_invoke)
function (::Core.kwftype(typeof(ChainRulesCore.frule)))(
@nospecialize($kwargs::Any),
frule::typeof(ChainRulesCore.frule),
::Tuple,
@nospecialize(::Tuple),
$(map(esc, primal_sig_parts)...),
)
return ($(esc(_with_kwargs_expr(primal_invoke, kwargs))), NoTangent())
end
function ChainRulesCore.frule(
::Tuple, $(map(esc, primal_sig_parts)...)
@nospecialize(::Tuple), $(map(esc, primal_sig_parts)...)
)
$(__source__)
# Julia functions always only have 1 output, so return a single NoTangent()
Expand Down

0 comments on commit 161e5f1

Please sign in to comment.