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

Support passing int as shape to broadcast_to #7271

Merged
merged 1 commit into from Jan 11, 2023

Conversation

kmaehashi
Copy link
Member

Reported internally. broadcast_to should accept int as shape.

https://numpy.org/doc/stable/reference/generated/numpy.broadcast_to.html

shape : tuple or int
The shape of the desired array. A single integer i is interpreted as (i,).

@asi1024 asi1024 self-assigned this Jan 4, 2023
@asi1024 asi1024 added cat:bug Bugs prio:high to-be-backported Pull-requests to be backported to stable branch labels Jan 4, 2023
@asi1024
Copy link
Member

asi1024 commented Jan 11, 2023

/test mini

@asi1024 asi1024 added this to the v12.0.0b3 milestone Jan 11, 2023
@asi1024 asi1024 merged commit d7303b6 into cupy:master Jan 11, 2023
chainer-ci pushed a commit to chainer-ci/cupy that referenced this pull request Jan 11, 2023
Support passing int as shape to `broadcast_to`
@kmaehashi kmaehashi deleted the broadcast-to-int branch January 11, 2023 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:bug Bugs prio:high to-be-backported Pull-requests to be backported to stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants