[MS][GPU][BugFix] 修复heaviside 异常输入导致的core dump #3

Open
p47068915 wants to merge 1 commits from p47068915/mindspore:master into master
First-time contributor

What type of PR is this?
/kind bug

What does this PR do / why do we need it:
When the shape of input is empty, the output in GPU will return Segmentation fault while that in CPU will return right result.

Fix it in order to make the output in GPU same as that in CPU.

Which issue(s) this PR fixes:

Fixes #I6PMQN:[CT][MS][Fuzz]heaviside算子异常入参导致报错Segmentation fault

What type of PR is this? /kind bug What does this PR do / why do we need it: When the shape of input is empty, the output in GPU will return Segmentation fault while that in CPU will return right result. Fix it in order to make the output in GPU same as that in CPU. Which issue(s) this PR fixes: Fixes #I6PMQN:[CT][MS][Fuzz]heaviside算子异常入参导致报错Segmentation fault
p47068915 added 1 commit 2023-03-25 11:28:04 +08:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b p47068915-master master
git pull master

Step 2:

Merge the changes and update on Gitea.
git checkout master
git merge --no-ff p47068915-master
git push origin master
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mindspore-Ecosystem/mindspore#3
No description provided.