Skip to content

Commit

Permalink
remove nospecialize
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed Jan 9, 2024
1 parent 1a64879 commit 6befc08
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),
@nospecialize(::RuleConfig),
::$RuleConfig,
$(map(esc, primal_sig_parts)...),
)
return ($(esc(_with_kwargs_expr(primal_invoke, kwargs))), NoTangent())
end
function ChainRulesCore.frule(
@nospecialize(::RuleConfig), $(map(esc, primal_sig_parts)...)
::$RuleConfig, $(map(esc, primal_sig_parts)...)
)
$(__source__)
# Julia functions always only have 1 output, so return a single NoTangent()
Expand Down

0 comments on commit 6befc08

Please sign in to comment.