-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[META][AutoDiff] Tech debt from tests #77773
Comments
Tagging @asl |
This is great work! Thanks @kovdan01 Priority wise, to me the high priority ones look good to me.
Regarding the existing issues priority: Hope this helps |
Oh also, the TF related links don't seem to work and redirect to the following page: https://github.com/apple/swift-issues/issues Is this a recent change that these issues are no longer hosted there? Not sure I haven't looked at the page for a while. |
It looks like they are not hosted there for at least several months. As far as I understood, they are just gone and were not transferred to github properly (some of them were, but not all of them), unfortunately. It looks like that swift github repository still has some rules so TF-XXX text in issues is automatically converted to corresponding dangling link - it might be a bit confusing. @asl Please correct me if I'm mistaken |
TF issues from TensorFlow Jira were never converted to github issues. So, they are gone forever. |
@JaapWijnen Thanks for assigning priorities! One minor comment regarding the following: it looks like that the observable error is the same but root cause is different (not related to curry thunks). So it looks like it would need a separate patch
|
This one looks worth checking as well:
|
Description
I've assigned preliminary priorities for the issues, but this should be revisited.
High priority:
[SR-14222] [AutoDiff] Incorrect derivative for array literal with
tuple_element_addr
elements #54214Note: FIXME(TF-977): Fix incorrect derivative for array literal with
tuple_element_addr
elements.Test: test/AutoDiff/validation-test/array.swift
Adjoint for active values in loops are just wrong #78264
Note: FIXME(TF-584): Investigate incorrect (too big) gradient values for repeat-while loops.
Test: test/AutoDiff/validation-test/control_flow.swift
Medium priority:
Note: TODO(TF-1030): This will eventually not be an error.
Test: test/AutoDiff/SILOptimizer/differentiation_diagnostics.swift (see
hasImplicitlyDifferentiatedClosureDefaultArgument
).The same error was fixed for curry thunks in [AutoDiff] Support curry thunks differentiation in fragile funcs #77615
Note: FIXME: missing reverse-mode differentiability witness for foo(_:)
Test: test/AutoDiff/SILGen/has_symbol.swift
[SR-13166] Default derivative implementations for protocol requirements #54231
Note: TODO(TF-982): Lift this restriction and add proper support.
Test: test/AutoDiff/Sema/derivative_attr_type_checking.swift
Note: FIXME(TF-284): Fix unexpected diagnostic. #78609
Test: AutoDiff/Sema/differentiable_attr_type_checking.swift
[SR-13689] derivative of @_alwaysEmitIntoClient function #54445
Note: FIXME(TF-1103): Derivative registration does not yet support
@_alwaysEmitIntoClient
original functions.Test: AutoDiff/stdlib/simd.swift
[SR-13700] Differentiation transform: support optional-related operations #54628
Note: TODO(TF-433): operator
??
lowers to an activetry_apply
.Test: test/AutoDiff/validation-test/optional.swift
[SR-12640] Differentiation transform: support wrapped value modify accessors #55084
Note: TODO: Support
modify
accessorsTest: test/AutoDiff/validation-test/property_wrappers.swift
Low priority:
[AutoDiff][test] Investigate if a
BooleanLiteralFolding
-related crash was fixed #77762Notes:
true
because it crashesfalse
because it crashesTests:
[AutoDiff][test] Ensure if
@differentiable
function SILGen thunking is fixed #77775Note: TODO(TF-851): Uncomment the tests below after
@differentiable
function SILGen thunking is fixed.Test: test/AutoDiff/SILOptimizer/generics.swift
Note: TODO: Re-enable the boolean-literal-folding pass and fix the test accordingly
Test: test/AutoDiff/SILOptimizer/activity_analysis.swift
Note: TODO(TF-956): Improve location of active enum non-differentiability errors
Test: test/AutoDiff/SILOptimizer/differentiation_control_flow_diagnostics.swift
Note: TODO(TF-957): Improve non-differentiability errors for for-in loops
Test: test/AutoDiff/SILOptimizer/differentiation_control_flow_diagnostics.swift
Note: TODO(TF-788): Re-enable non-varied result warning.
Test: test/AutoDiff/SILOptimizer/differentiation_diagnostics.swift
Note: TODO(TF-482): Remove diagnostics when
@differentiable
attributes are also uniqued based on generic requirements.Test: test/AutoDiff/Sema/differentiable_attr_type_checking.swift
Note: TODO(TF-650): It would be nice to diagnose protocol default implementation with missing
@differentiable
attribute.Test: test/AutoDiff/Sema/differentiable_attr_type_checking.swift
Note: TODO(TF-632): Fix "'TangentVector' is not a member type of 'Self'" diagnostic. The underlying error should appear instead: "covariant 'Self' can only appear at the top level of method result type".
Test: test/AutoDiff/Sema/differentiable_attr_type_checking.swift
Note: FIXME: Enable test for all platforms after debugging ([SR-12741] TEST 'Swift(iphonesimulator-i386) :: AutoDiff/validation-test/control_flow.swift #55186).
Test: test/AutoDiff/validation-test/control_flow.swift
Note: TODO(TF-1065): Consider disallowing qualified operators / operator names
Tests:
Existing issues which require discussion about priorities, semantics, etc:
Class-related:
Forward-mode-related:
Note: FIXME: Disabled due to test failure with
-O
Test: test/AutoDiff/validation-test/differentiable_protocol_requirements.swift
Entire tests which require discussion whether we want to address tech debt for them:
Class-related:
Forward-mode-related:
Marked as TODO/FIXME/etc but require discussion whether we want to address them:
Class-related:
Test: test/AutoDiff/TBD/derivative_symbols.swift
FIXMEs are related to initializer and other special functions differentiation support
modify
accessor derivative values.Test: test/AutoDiff/validation-test/inout_parameters.swift
@derivative
to override derivatives for original declaration defined in superclass.Test: test/AutoDiff/Sema/derivative_attr_type_checking.swift
Test: test/AutoDiff/Sema/derivative_attr_type_checking.swift
This looks working for structs.
Test: test/AutoDiff/TBD/derivative_symbols.swift
The FIXME is related to the following crash:
Test: test/AutoDiff/validation-test/property_wrappers.swift
%16
, etc.Test: test/AutoDiff/SILOptimizer/activity_analysis.swift
This is related to class property modify accessor.
Forward-mode-related:
Test: test/AutoDiff/SILOptimizer/semantic_member_accessors_sil.swift
test/AutoDiff/stdlib/floating_point.swift.gyb
when forward-mode differentiation supportsinout
parameter differentiation.Test: test/AutoDiff/validation-test/inout_parameters.swift
Test: test/AutoDiff/validation-test/property_wrappers.swift
Test: test/AutoDiff/validation-test/simple_math.swift
Linear functions related:
Test: test/AutoDiff/SILGen/differentiable_function.swift
@differentiable(_linear)
functions.Test: test/AutoDiff/IRGen/loadable_by_address.swift
Additional information
No response
The text was updated successfully, but these errors were encountered: