Repository navigation
Conversation
|
Can one of the admins verify this patch? |
|
@facaiy, thanks for your PR! By analyzing the history of the files in this pull request, we identified @keveman, @vrv and @tensorflower-gardener to be potential reviewers. |
|
Sorry I don't understand the motivation what does this improve? |
b48e565 to
69a8cdd
Compare
|
@yaroslavvb , the PR is modified as suggested by @pmccarter . But I am not sure whether it is implemented correctly, could you give more feedback? Thanks. |
|
@tensorflow-jenkins test this please |
|
@facaiy As you can see here: https://ci.tensorflow.org/job/tensorflow-pull-requests-cpu/6320/consoleFull |
|
@rmlarsen @martinwicke It'll be really useful for me if I can check test.log of CI. Because my laptop is left on office, hence I'll check it later. Thanks very much! |
|
@tensorflow-jenkins test this please |
|
Hi, @rmlarsen . I submit a fix, and could you help retest the PR? Thanks. |
| Returns: | ||
| A `Tensor`. Has the same type as `tensor`. | ||
| """ | ||
| if hasattr(shape, "__len__") and len(shape) <= 8: |
There was a problem hiding this comment.
Should we raise an exception when len(shape) > 8?
|
By the way, since |
|
@facaiy The docs are inside cc file which defines reshape op. To think of it, this approach would trigger an API review. I wonder if there's a simple solution which would only touch a couple of lines of Python code, better chance of being accepted without a lot of work on maintaining team. BTW, the best way to test things is to run all relevant tests locally first, using "bazel test" |
|
Thanks for your explanation, @yaroslavvb . I agree that migrating Anyway, if you have any new idea / suggestion, please tell me. I'd like to take a try. Running all test locally is time-consuming, hence only several unit tests are selected by me to be tested at first. By the way, could you tell me how to run doctest? Thanks. |
The PR aims to fix #11974.
Because it's my first contribution, so the PR is opened early to get feedback from community.
What changes were proposed in this pull request?
Cast tf.Dimension to int for shape argument.
How was this patch tested?