Skip to content
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

Update docs for tf.unstack with respect to numpy compatibility #18694

Merged
merged 1 commit into from
Apr 22, 2018

Conversation

yongtang
Copy link
Member

@yongtang yongtang commented Apr 19, 2018

In #18692 an issue was raised over whether tf.unstack is compatible with numpy.unstack (specified in existing docs) or numpy.split.

It looks like there is no numpy.unstack. And for numpy.split, it is not compatible with tf.unstack.

The tf.split is indeed very close to numpy.split. However, the second arg num_or_size_splits in tf.split requires the number of the splits, while the second arg indices_or_sections in numpy.split requires the index of the splits. For that reason the tf.split is not compatible with numpy.split as well.

According to the above this fix simply removes The numpy equivalent part in the docs of tf.unstack.

This fix fixes #18692.

Signed-off-by: Yong Tang yong.tang.github@outlook.com

In 18692 an issue was raised over whether tf.unstack
is compatible with numpy.unstack (specified in current docs)
or numpy.split.

It looks like there is no numpy.unstack. And for numpy.split,
it is not compatible with tf.unstack.

The tf.split is very close to numpy.split. However, the second
arg `num_or_size_splits` in `tf.split` requires the number of
the splits, while the second arg `indices_or_sections` in
`numpy.split` requires the index of the splits. For that reason
the tf.split is not compatible with numpy.split as well.

According to the above this fix simply removes `The numpy equivalent` part
in the docs of tf.unstack.

This fix fixes 18692.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
@martinwicke martinwicke merged commit d86c127 into tensorflow:master Apr 22, 2018
@yongtang yongtang deleted the 18692-unstack-doc branch April 22, 2018 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation mistake?
3 participants