-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix scalar batch handling in arithmetic ops (#1449)
Adjust test for checking if the Tensor should be considered a scalar - uniform shape of 1-dim scalar elements. Allow Scalar batch to be broadcasted in the operation properly - no offset in tiles for scalar-like data, same code-path as constants. Return shape is always a batch - fixed for Constant/Scalar inputs. Add C++ unit tests for Scalar Batch. Test if Pipeline behaves properly when switching between scalar and non-scalar inputs. Python test was extended to cover Scalar inputs, size of some of the tests was reduced. Signed-off-by: Krzysztof Lecki <[email protected]>
- Loading branch information
Showing
6 changed files
with
400 additions
and
128 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.