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

Add argmax/argmin testcases #430

Closed
wants to merge 29 commits into from

Conversation

wjj19950828
Copy link
Contributor

Do follow contributes

1、添加argmax/argmin单测
2、修复argmin在指定输出shape为int64时的bug
3、添加argmax对flatten属性支持

@wjj19950828 wjj19950828 changed the title Add testcase Add argmax/argmin testcases Dec 14, 2021
@jiangjiajun
Copy link
Collaborator

MARK下,此PR在解决OpSet15问题后再合入

const_value = graph.make_node(
'Constant', dtype=dtypes.ONNX.INT64, value=[-1])
input_node = graph.make_node(
'Reshape', inputs=[node.input('X', 0), const_value])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

函数改为opset_7,因为在opset_1中, reshape中的shape是一个attr

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

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.

None yet

4 participants