Skip to content

Conversation

iduartgomez
Copy link
Contributor

@iduartgomez iduartgomez commented Jul 19, 2017

in the tensor_shape method for the Graph type, .len() was being called to pull the rank information from the tensor when calling C instead of passing the rank information directly , so an error was being returned by the API (ie. InvalidArgument: Expected rank is 0 but actual rank is 2 on a [3, 3] tensor) as the vector was always empty (is an empty vector being passed to C so it can be filled with the dimension information).

Fixed it and added a test to check for this in the future.

P.S: made a new clean pull request without all the whitespace changes

@adamcrume
Copy link
Contributor

Thanks!

By the way, you don't need to create a new pull request to throw out changes; you can remove unneeded changes from the latest commit by running git revert -n HEAD && git reset -p, unstaging the bits you want to keep, then git commit --amend && git checkout . and push with -f.

(For reference, this is an update of #91.)

@adamcrume adamcrume merged commit 15fffa5 into tensorflow:master Jul 20, 2017
@iduartgomez
Copy link
Contributor Author

Thanks for the info, had the impression git resets were hard/impossible to pull out when you have committed to the upstream repo already. Will try it this way next time.

Thanks anyway!

@iduartgomez iduartgomez deleted the fix-tensorshape branch July 20, 2017 09:01
@sanmai-NL
Copy link
Contributor

@iduartgomez: helpful note, it's the git push -f that's critical.

ramon-garcia pushed a commit to ramon-garcia/tensorflow-rust that referenced this pull request May 20, 2023
…tensorflow#93)

* added new row indexer for parquet data frame

* updated parquet dataset

* support dates (INT64 only) in plain encoding

* update readme

* some changes to the test

* test don't touch Ivan please

* reversed the timestamp_millis type using unannotated INT96 as Spark INT64 implementation not complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants