Skip to content

[TF-935] Replaces '-Xllvm -run-jvp-generation' by '-enable-experiment… #27861

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

Merged
merged 3 commits into from
Oct 25, 2019

Conversation

vguerra
Copy link
Contributor

@vguerra vguerra commented Oct 24, 2019

…al-forward-mode-differentiation'.

-enable-experimental-forward-mode-differentiation is a frontend option that is clearer on it's intent and more
accessible. It defaults to false.

Resolves TF-935.

@@ -358,6 +358,9 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
if (Args.hasArg(OPT_experimental_dependency_include_intrafile))
Opts.ExperimentalDependenciesIncludeIntrafileOnes = true;

// TODO: Ignore if enable-experimental-differentiable-programming is false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I've seen in the code {{-enable-experimental-differentiable-programming}} has been added as frontend option but is not really taken into account to enable/disable AutoDiff capabilities. As soon as the opt is taken into account, we can update this to disable {{EnableExperimentalForwardModeDifferentation}} accordingly.

…al-forward-mode-differentiation'.

-enable-experimental-forward-mode-differentiation is a frontend option that is clearer on it's intent and more
accessible. It defaults to false.

Resolves [TF-935](https://bugs.swift.org/browse/TF-935).
@@ -231,6 +231,8 @@ static void addCommonFrontendArgs(const ToolChain &TC, const OutputInfo &OI,
options::OPT_enable_experimental_dependencies);
inputArgs.AddLastArg(arguments,
options::OPT_experimental_dependency_include_intrafile);
inputArgs.AddLastArg(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooo, is inputArgs.AddLastArg missing for options::OPT_enable_experimental_differentiable_programming? I'm not sure whether adding it is necessary, but it seems necessary.

Copy link
Contributor Author

@vguerra vguerra Oct 24, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed it is missing and it seems to be necessary but since the option is not used anywhere in the code yet (#27446). Honestly, I am not sure what the consequences are of not doing inputArgs.AddLastArg.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I am not sure what the consequences are of not doing inputArgs.AddLastArg.

Me neither 😮

@vguerra
Copy link
Contributor Author

vguerra commented Oct 24, 2019

thank you for the review @dan-zheng, I addressed your comments on 6527605

@dan-zheng dan-zheng requested a review from rxwei October 24, 2019 16:21
Copy link
Contributor

@rxwei rxwei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Co-Authored-By: Richard Wei <[email protected]>
@rxwei
Copy link
Contributor

rxwei commented Oct 25, 2019

@swift-ci please test tensorflow

1 similar comment
@rxwei
Copy link
Contributor

rxwei commented Oct 25, 2019

@swift-ci please test tensorflow

@rxwei rxwei merged commit eaefd71 into swiftlang:tensorflow Oct 25, 2019
@vguerra vguerra deleted the TF-935 branch October 30, 2019 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants