-
Notifications
You must be signed in to change notification settings - Fork 6k
[API Compatibility] instance_norm/to_empty/linalg.det/gumbel_softmax/vstack/addcdiv/batch_norm/set_default_device/set_grad_enabled/new_tensor/_Loss/_pair/histc/hstack/true_divide_/linalg.eigh/Tensor.H/ELU/relu6/clamp_max/qr/logdet/linalg.cholesky/elu/tensordot/prelu/expand_copy/linalg.qr/clamp_ #79383
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
Changes from 17 commits
d32d979
13328d3
5aafa15
69a736f
0e0271e
99525a9
d7fac5c
529f31b
64633da
9b0e602
edc5ca4
e3eaea1
0f878b1
ab8651f
251a608
32341de
69fc6e1
d1cc20e
87951f0
699f2d1
97b81d8
fd11da6
91796ff
d5b02da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -287,6 +287,13 @@ | |
| args_alias : | ||
| use_default_mapping : True | ||
|
|
||
| - op : cholesky | ||
| name : [paddle.cholesky, paddle.linalg.cholesky, paddle.Tensor.cholesky] | ||
| args_alias : | ||
| use_default_mapping : True | ||
| pre_process : | ||
| func : CholeskyPreProcess(x, upper) | ||
|
|
||
| - op : conj | ||
| name: [paddle.conj, paddle.Tensor.conj] | ||
| args_alias : | ||
|
|
@@ -325,12 +332,24 @@ | |
| axis1 : [dim1] | ||
| axis2 : [dim2] | ||
|
|
||
| - op : det | ||
| name : [paddle.det, paddle.linalg.det, paddle.Tensor.det] | ||
| args_alias : | ||
| x : [input, A] | ||
|
|
||
| - op : dot | ||
| name : [paddle.dot, paddle.Tensor.dot] | ||
| args_alias : | ||
| x : [input] | ||
| y : [tensor] | ||
|
|
||
| - op : eigh | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这里把 建议形态: @ParamAliasDecorator({"x": ["input"]})
def eigh(x, UPLO='L', name=None, *, out=None):
_check_eigh_input(x, UPLO)
if in_dynamic_or_pir_mode():
result = _C_ops.eigh(x, UPLO)
else:
check_variable_and_dtype(x, 'dtype', ['float32', 'float64', 'complex64', 'complex128'], 'eigh')
helper = LayerHelper('eigh', **locals())
out_w = helper.create_variable_for_type_inference(dtype=x.dtype)
out_v = helper.create_variable_for_type_inference(dtype=x.dtype)
helper.append_op(
type='eigh',
inputs={'X': x},
outputs={'Eigenvalues': out_w, 'Eigenvectors': out_v},
attrs={'UPLO': UPLO},
)
result = (out_w, out_v)
if out is not None:
paddle.assign(result[0], out[0])
paddle.assign(result[1], out[1])
return out
return result |
||
| name : [paddle.linalg.eigh, paddle.Tensor.eigh] | ||
| args_alias : | ||
| use_default_mapping : True | ||
| pre_process : | ||
| func : EighPreProcess(x, UPLO) | ||
|
|
||
| - op : erf | ||
| name : [paddle.erf, paddle.Tensor.erf] | ||
| args_alias : | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里把
cholesky改成由生成绑定导出,同时删除了python/paddle/tensor/linalg.py里原来的 Python wrapper。被删 wrapper 的 legacy static 分支会用LayerHelper('cholesky')追加旧 IR op;而当前生成的 eager/PIR 入口只解析Tensor/PIRValue,PIR static 对out=也只是 warning 后忽略,不能替代旧Variable的LayerHelper构图路径。当前文档和兼容测试已经声明input=/out=语义,请恢复 Python wrapper,在 wrapper 中统一处理 alias/out,动态/PIR 调_C_ops.cholesky,legacy static 保留原append_op(type='cholesky', ...)路径,并补OldIrGuard下的回归用例。建议形态: