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

[TF] Fix Tensor.replacing(_:_:) wrong semantics. #24635

Merged
merged 1 commit into from May 18, 2019

Conversation

artste
Copy link

@artste artste commented May 9, 2019

Swapped self and other. Now values will be replaced if mask is true.

References:
https://bugs.swift.org/browse/TF-492
https://forums.fast.ai/t/tensor-replacing-with-replacing-on-false/45507

Swapped `self` and `other`. Now values will be replaced if mask is `true`.
@dan-zheng dan-zheng requested review from dan-zheng and rxwei and removed request for dan-zheng May 9, 2019 16:01
Copy link
Collaborator

@dan-zheng dan-zheng left a comment

Choose a reason for hiding this comment

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

Thank you! Could you please add a test to test/TensorFlowRuntime/tensor.swift?

@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label May 9, 2019
@rxwei
Copy link
Member

rxwei commented May 18, 2019

@swift-ci please test tensorflow

@rxwei
Copy link
Member

rxwei commented May 18, 2019

Merging to fix wrong semantics.

@rxwei rxwei merged commit 8472823 into apple:tensorflow May 18, 2019
artste added a commit to artste/swift that referenced this pull request May 27, 2019
)

Added a unit test to test Tensor.replacing functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tensorflow This is for "tensorflow" branch PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants