Repository navigation
Conversation
Adds tests for `broadcast_shapes` and `broadcast_chunks` with one argument. Didn't appear there was one before for either case. Hence this adds one for this important base case.
Make sure that if `broadcast_chunks` gets no arguments, it return an empty tuple.
Adds tests for `broadcast_shapes` and `broadcast_chunks` when no argument is provided. Didn't appear there was one before for either case. Also it failed for `broadcast_chunks` previously. Hence this adds test for this base case.
Merged
shoyer
approved these changes
Feb 27, 2018
Member
|
Thanks @jakirkham ! |
jakirkham
deleted the
support_0_or_1_args__broadcast_shapes__broadcast_chunks
branch
February 27, 2018 15:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In
broadcast_shapesboth of these cases were supported, but didn't find test cases for either. Inbroadcast_chunksthe single argument case was supported, but the no argument case failed. Alsobroadcast_chunksdidn't appear to have tests for the single or no argument cases.Hence this fixes
broadcast_chunksto work in the no argument case. Also adds test cases forbroadcast_shapesandbroadcast_chunkswhen provided no arguments or a single argument.