-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【Paddle Tensor No.8、9、14、15】为Tensor新增
__rshift__
,__lshift__
,`__rls…
…hift__`,`__rrshift__` (#69348) * update * fix:update expected output * fix:`_rrshift__` -> `__rrshift__` * feat: use `paddle.to_tensor` to support int input,and raise TypeError for float * 📝 docs:remove docstring of magic method * test:add test for `__lshift__`,`__rshift__`,`__rlshift__`,`__rrshift__`,`__rshift__`cannot pass ref_right_shift_logical `__rshift__` cannot pass TestBitwiseRightShiftAPI.test_static_api_logical and test_dygraph_api_arithmetic * test: use `x.__rrshift__(y,False)` to send is_arithmetic * test: keep it as the same. 使用__rshift__而不是__rrshift__,使用__lshift__,而不是__rlshift__ * chore: remove `out` and `name` * fix: 直接继承TestCase来进行不同类型测试 * test: add more test in uint8,int8,int16 for `__rlshift__` and `__rrshift__` * typos: raises TypeError between `'float' and 'Tensor'` and `'Tensor' and 'float'` * test: add test for `TypeError` in float * typo: `bool` -> `float`
- Loading branch information
1 parent
3a8618e
commit 138ac11
Showing
3 changed files
with
241 additions
and
0 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
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