Skip to content
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

[CINN][Warning Mitigation] Fix argmax, argmin infer symbolic and diagonal infer meta #70977

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

ooooo-create
Copy link
Contributor

@ooooo-create ooooo-create commented Jan 25, 2025

PR Category

CINN

PR Types

Others

Description

缓解 infer meta 和 infer symbolic 检查时的 Warning.
Pcard-67164

  1. Fix argmax, argmin infer symbolic
  • 当 flatten=True,keepdims=False,应该返回 shape[] 而不是 shape[0]
  1. Fix diagonal infer meta
  • 当 axis1 和 axis2 对应的 shape 有一个为未知(-1)时,计算这两个维度的对角线形状时也应该为 -1
  1. Fix test_infer_sym_shape_unary_op

@ooooo-create ooooo-create changed the title [CINN][Reduce Warning Message] Fix argmax, argmin infer symbolic and diagonal infer meta [CINN][Warning Mitigation] Fix argmax, argmin infer symbolic and diagonal infer meta Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant