Skip to content

Correct inferring tensor shape for Tensorflow Transform #4509

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

Closed
wants to merge 2 commits into from

Conversation

ashbhandare
Copy link
Contributor

@ashbhandare ashbhandare commented Nov 27, 2019

Fixes #4364 partially.
The above issue brought into attention that there was a wrong assumption while inferring input tensor shape in TensorflowTransform. It was assumed that for a input node of a graph with unknown dimensions, all the dimensions would be the same, even though that is not true in most cases. For example, the most common tensor shape format for dealing with Image- based models is (batch_size, height, width, channels).
This change replaces this wrong check with more comprehensive method of inferring the input tensor shape.
More tests might need to be added for code coverage.

@codemzs
Copy link
Member

codemzs commented Dec 2, 2019

@ashbhandare I know this is in Draft but please don't forget to add functionality to pass in shape from text loader just the same way we support with IEnumerable otherwise the fix is incomplete.

@michaelgsharp
Copy link
Member

As the issue this PR addresses is already closed, I am closing this PR.

@ghost ghost locked as resolved and limited conversation to collaborators Mar 19, 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.

Unable to find input colum on tensor flow model using C#
3 participants