You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix the problem of size accuracy when using arange/range with different input and output types.
- include paddle/phi/core/visit_type.h in xpu/arange_kernel.cc
- 1.Add old infermeta to support legacy; 2.align precision in range_kernel; 3. fix a little bug in creation
- Add an `assign` op after a Tensor argument to avoid confusing it with the scalar case in `arange`
- refine the comment about assign op insertion
- cleanup unused comments
- insert assign for full op output only
- 1.Add TestRangeV2LegacyInferMeta.test_range_v2_legacy to test the RangeTensorInferMetaLegacy via legacy static graph path; 2.delete the inf check for `step`
- Check if CI reaches GetSizeForRange
- 1.delete PADDLE_THROW in range_func.h; 2.add a case to cover the size is 0 in range kernel
- Update python/paddle/jit/dy2static/convert_operators.py
- 1.Remove redundant code and fix type inconsistencies in kernel. 2.Add missing includes to avoid transitive includes. 3.Wrap the main body of test_range_v2_legacy in a try/finally to guarantee static mode is disabled even on failure.
- 1. Use MPType for intermediate computation in CPU kernels to support future 16-bit types; 2.Unify tensor input type conversion by converting tensor to scalar and calling scalar.to<>().
Co-authored-by: omoYang <1115418865@qq.com>
Co-authored-by: SigureMo <sigure.qaq@gmail.com>
0 commit comments