[SR-9683] [AD] Copy generic signature in primal synthesis #52125
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
swift for tensorflow
Additional Detail from JIRA
md5: 26b01a0a332a46f64ec4b49463b83f5b
Issue Description:
When function to differentiate doesn't specify adjoint/vjp, primal synthesis occurs.
If function is in a generic context, SIL verification fails because primal isn't synthesized with a generic signature.
We should synthesize generic signature for primal identical to that of the original function.
The text was updated successfully, but these errors were encountered: