You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the differentiation transform (PullbackEmitter) always creates adjoint buffers for address-typed original values, regardless of whether the tangent type is loadable or address-only.
However, some address-only original types may have loadable tangent types. For tangent types that are loadable, it would be more efficient to use symbolic AdjointValues instead of adjoint buffers.
Additional Detail from JIRA
md5: 1cb3774afc376c7e1ea6c8e78781ce5d
Issue Description:
Currently, the differentiation transform (
PullbackEmitter
) always creates adjoint buffers for address-typed original values, regardless of whether the tangent type is loadable or address-only.However, some address-only original types may have loadable tangent types. For tangent types that are loadable, it would be more efficient to use symbolic
AdjointValues
instead of adjoint buffers.We should make the "tangent value category" depend solely on whether the tangent type is loadable or address-only.
Discussion from #32540 (comment)
The text was updated successfully, but these errors were encountered: