Skip to content

Improve error message for non-vector input to TensorFlowTransform #3768

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 1 commit into from
May 24, 2019

Conversation

najeeb-kazmi
Copy link
Member

Closes #1542

The behavior is expected. TensorFlow treats all inputs as tensors. A scalar input should simply be loaded as a uni-dimensional tensor.

This PR improves the error message for the existing check for non-vector inputs to make this clear and closes the issue.

Copy link
Contributor

@zeahmed zeahmed left a comment

Choose a reason for hiding this comment

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

LGTM.

@najeeb-kazmi najeeb-kazmi merged commit ce1a72c into dotnet:master May 24, 2019
@najeeb-kazmi najeeb-kazmi deleted the 1542 branch January 30, 2020 01:22
@ghost ghost locked as resolved and limited conversation to collaborators Mar 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TensorFlow transform would throw on non-vector input
3 participants