Navigation Menu

Skip to content
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

[SR-9636] [AD] Test tensor_autodiff_runtime fails when GPE is disabled in no-vjp mode. #52082

Closed
swift-ci opened this issue Jan 10, 2019 · 6 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. swift for tensorflow

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-9636
Radar None
Original Reporter bgogul (JIRA User)
Type Bug
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Swift for TensorFlow
Labels Bug
Assignee @rxwei
Priority Medium

md5: 3d524c88a959adc795b5ce1e6e2b3c56

Issue Description:

See change in PR-21775 for context.

@rxwei
Copy link
Member

rxwei commented Jan 10, 2019

No-vjp mode is not on by default and will soon be deprecated. Please help remove that RUN line. Thanks!

@swift-ci
Copy link
Collaborator Author

Comment by Gogul Balakrishnan (JIRA)

Even better! Done.

@dan-zheng
Copy link
Collaborator

bgogul (JIRA User) Are you removing the "no-vjp-mode" RUN line in a future PR?

I'm wondering because the current version of the test file still has the RUN line:

https://github.com/apple/swift/blob/c5a29ec2bf2f6bb4b3b5cc551863a43fc86df7ad/test/TensorFlowRuntime/tensor_autodiff_runtime.swift

@swift-ci
Copy link
Collaborator Author

Comment by Gogul Balakrishnan (JIRA)

@dan-zheng, yes, it is removed here just for this file: #21775

@rxwei, should I remove it from all tests?

@rxwei
Copy link
Member

rxwei commented Jan 11, 2019

We are keeping no-vjp mode for optimizations, but I think it might lead to a lot of complications in creating the primal value struct for generic functions: In non-vip mode we have to checkpoint any primal values, and primal values can require indirect passing. Pullbacks will never require indirect passing for primal value structs.
@marcrasi, what do you think?

@marcrasi
Copy link
Mannequin

marcrasi mannequin commented Jan 11, 2019

No need to remove it in your PR bgogul (JIRA User), but it could be pretty good to remove it (and all the novjp code in TFDifferentiation) soon. I left it there so that the code would stay "mostly working" when we decided to start using it again for optimizations, but it seems like it could be quite a burden to keep it working for a while until we start actually using it. It'll probably be easier to delete it all now and bring it back later when we actually need it.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. swift for tensorflow
Projects
None yet
Development

No branches or pull requests

3 participants