[SR-9511] [AD] Make thick @autodiff functions use a special type info #51963
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
swift for tensorflow
Additional Detail from JIRA
md5: 64b3242605890a868f52f5703fd39d2e
Issue Description:
When lowering types to IRGen, we currently convert @autodiff functions to a tuple representing the function bundle. However, this does not work well with thick functions because tuples' lowered type is not a ReferenceType. We need a special type info for thick @autodiff functions: DifferentiableFunctionTypeInfo.
Luckily, I have some prior work (or, boilerplate) that I can directly port over to support thick functions: 79c17ac
The text was updated successfully, but these errors were encountered: