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 isinf #868

Merged
merged 113 commits into from
Aug 19, 2022
Merged

Add isinf #868

merged 113 commits into from
Aug 19, 2022

Conversation

qqj1130247885
Copy link
Collaborator

@qqj1130247885 qqj1130247885 commented Aug 10, 2022

Create A Good Pull Request

下面的文字请保留在PR说明的最后面,并在提完PR后,根据实际情况勾选确认以下情况

Please check the follow step before merging this pull request

  • Python code style verification
  • Review all the code diff by yourself
  • All models(TensorFLow/Caffe/ONNX/PyTorch) testing passed
  • Details about your pull request, releated issues

If this PR add new model support, please update model_zoo.md and add model to out test model zoos(@wjj19950828)

  • New Model Supported
  • No New Model Supported

主要贡献:

1 增加对isinf的单测程序
2 onset10下增加isinf的转换

@print_mapping_info
def IsInf(self, node):
val_x = self.graph.get_input_node(node, idx=0, copy=True)
if node.get_attr('detect_negative') != None or node.get_attr(
Copy link
Collaborator

Choose a reason for hiding this comment

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

如果这两个属性为默认值,非None,这里是否也会raise Exception呢,但默认值是否是支持的呢

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@wjj19950828 wjj19950828 merged commit f313f56 into PaddlePaddle:develop Aug 19, 2022
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.

2 participants