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

GH-120: Adding support for tf.Cond #176

Merged
merged 1 commit into from
Dec 1, 2017

Conversation

cesarsouza
Copy link
Contributor

This PR adds support for tf.cond in TensorFlowSharp.

In order for tf.cond to work, I had to add support for the tf.Graph.control_dependencies(control_inputs) method, which I have re-named WithDependencies to follow the same style used with WithScope. For this I have introduced a new class, TFDependency, which is analogous to TFScope but serves to controls the TFGraph.CurrentDependencies property instead of CurrentNameScope.

I took the liberty to fix a few documentation warnings along the way in this PR.

Accepting this PR closes #120

@migueldeicaza migueldeicaza merged commit 8d9fb12 into migueldeicaza:master Dec 1, 2017
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.

tf.cond
2 participants