Skip to content

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

Merged
najeeb-kazmi merged 1 commit into
dotnet:masterfrom
najeeb-kazmi:1542
May 24, 2019
Merged

Improve error message for non-vector input to TensorFlowTransform#3768
najeeb-kazmi merged 1 commit into
dotnet:masterfrom
najeeb-kazmi:1542

Conversation

@najeeb-kazmi

Copy link
Copy Markdown
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.

@zeahmed zeahmed left a comment

Copy link
Copy Markdown
Contributor

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