Repository navigation
Conversation
…nt_tensor
Pre-fetching for upstream change where shape.shape_of can produce a
ranked tensor of index, rather than just a shape and post
canonicalization one has a shape.shape_of feeding into a
shapex.from_extent_tensor directly. The lowering of shape_of ti
get_ranked_shape then leads to an invalid ranked_tensor as input to
from_extent_tensor, e.g.,
%63 = "shapex.get_ranked_shape"(%55) : (tensor<?x10xf32>) -> !shapex.ranked_shape<[?,10]>
%64 = "shapex.from_extent_tensor"(%63) : (!shapex.ranked_shape<[?,10]>) -> !shapex.ranked_shape<[?,?]>
Avoid this by removing the from_extent_tensor in these cases and
propagating the value from get_ranked_shape directly.
copybara-service Bot
pushed a commit
that referenced
this pull request
Jul 25, 2020
Pre-fetching for upstream change where shape.shape_of can produce a ranked tensor of index, rather than just a shape and post canonicalization one has a shape.shape_of feeding into a shapex.from_extent_tensor directly. The lowering of shape_of ti get_ranked_shape then leads to an invalid ranked_tensor as input to from_extent_tensor, e.g., %63 = "shapex.get_ranked_shape"(%55) : (tensor<?x10xf32>) -> !shapex.ranked_shape<[?,10]> %64 = "shapex.from_extent_tensor"(%63) : (!shapex.ranked_shape<[?,10]>) -> !shapex.ranked_shape<[?,?]> Avoid this by removing the from_extent_tensor in these cases and propagating the value from get_ranked_shape directly. Author: Jacques Pienaar <[email protected]> Closes: #2667 PiperOrigin-RevId: 323191580
Collaborator
|
Note: I have submitted this on the internal side to unblock the integrate there. We will hold this one open until successful. |
copybara-service Bot
pushed a commit
that referenced
this pull request
Jul 26, 2020
Pre-fetching for upstream change where shape.shape_of can produce a ranked tensor of index, rather than just a shape and post canonicalization one has a shape.shape_of feeding into a shapex.from_extent_tensor directly. The lowering of shape_of ti get_ranked_shape then leads to an invalid ranked_tensor as input to from_extent_tensor, e.g., %63 = "shapex.get_ranked_shape"(%55) : (tensor<?x10xf32>) -> !shapex.ranked_shape<[?,10]> %64 = "shapex.from_extent_tensor"(%63) : (!shapex.ranked_shape<[?,10]>) -> !shapex.ranked_shape<[?,?]> Avoid this by removing the from_extent_tensor in these cases and propagating the value from get_ranked_shape directly. Author: Jacques Pienaar <[email protected]> Closes: #2667 PiperOrigin-RevId: 323191580
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pre-fetching for upstream change where shape.shape_of can produce a
ranked tensor of index, rather than just a shape and post
canonicalization one has a shape.shape_of feeding into a
shapex.from_extent_tensor directly. The lowering of shape_of ti
get_ranked_shape then leads to an invalid ranked_tensor as input to
from_extent_tensor, e.g.,
Avoid this by removing the from_extent_tensor in these cases and
propagating the value from get_ranked_shape directly.