Skip to content

Commit 161e5f1

Browse files
committed
nospecialize on tuple
1 parent 67036a8 commit 161e5f1

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-
::Tuple,
406+
@nospecialize(::Tuple),
407407
$(map(esc, primal_sig_parts)...),
408408
)
409409
return ($(esc(_with_kwargs_expr(primal_invoke, kwargs))), NoTangent())
410410
end
411411
function ChainRulesCore.frule(
412-
::Tuple, $(map(esc, primal_sig_parts)...)
412+
@nospecialize(::Tuple), $(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)