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

[feature request] np.repeat like function #14093

Closed
ssnl opened this issue Nov 16, 2018 · 2 comments
Closed

[feature request] np.repeat like function #14093

ssnl opened this issue Nov 16, 2018 · 2 comments
Labels
todo Not as important as medium or high priority tasks, but we will work on these. triage review

Comments

@ssnl
Copy link
Collaborator

ssnl commented Nov 16, 2018

We have tensor.repeat, which is really np.tile. :)

It seems that it could be implemented via expands + a cat, if cat doesn't contiguous-fy the inputs...

@ssnl ssnl changed the title np.repeat like function [feature request] np.repeat like function Nov 16, 2018
@Kaixhin
Copy link
Contributor

Kaixhin commented Nov 16, 2018

Yep parity with numpy naming on these functions in particular would make things less confusing.

@soumith soumith added todo Not as important as medium or high priority tasks, but we will work on these. triage review labels Nov 19, 2018
@zasdfgbnm
Copy link
Collaborator

numpy like repeat will be very helpful to me, please, please, please add this to pytorch :)

zdevito pushed a commit to zdevito/ATen that referenced this issue Apr 6, 2019
Summary:
Fixes: pytorch/pytorch#14093
cc: SsnL
Pull Request resolved: pytorch/pytorch#18395

Differential Revision: D14599509

Pulled By: umanwizard

fbshipit-source-id: 2391a1cc135fe5bab38475f1c8ed87c4a96222f3
zhangguanheng66 pushed a commit to zhangguanheng66/pytorch that referenced this issue May 6, 2019
Summary:
Fixes: pytorch#14093
cc: SsnL
Pull Request resolved: pytorch#18395

Differential Revision: D14599509

Pulled By: umanwizard

fbshipit-source-id: 2391a1cc135fe5bab38475f1c8ed87c4a96222f3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
todo Not as important as medium or high priority tasks, but we will work on these. triage review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants