Skip to content

Commit 6befc08

Browse files
committed
remove nospecialize
1 parent 1a64879 commit 6befc08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rule_definition_tools.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,13 +403,13 @@ function _nondiff_frule_expr(__source__, primal_sig_parts, primal_invoke)
403403
function (::Core.kwftype(typeof(ChainRulesCore.frule)))(
404404
@nospecialize($kwargs::Any),
405405
frule::typeof(ChainRulesCore.frule),
406-
@nospecialize(::RuleConfig),
406+
::$RuleConfig,
407407
$(map(esc, primal_sig_parts)...),
408408
)
409409
return ($(esc(_with_kwargs_expr(primal_invoke, kwargs))), NoTangent())
410410
end
411411
function ChainRulesCore.frule(
412-
@nospecialize(::RuleConfig), $(map(esc, primal_sig_parts)...)
412+
::$RuleConfig, $(map(esc, primal_sig_parts)...)
413413
)
414414
$(__source__)
415415
# Julia functions always only have 1 output, so return a single NoTangent()

0 commit comments

Comments
 (0)