| profiler fix new
Co-authored-by: hehongzhe<935062458@qq.com>
# message auto-generated for no-merge-commit merge:
!25393 merge hs7 into v2.7.1
profiler fix new
Created-by: hhz0
Commit-by: hehongzhe
Merged-by: ascend-robot
Description: <!-- Thanks for sending a pull request!
-->
**What type of PR is this?**
> Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:
>
> /kind bug
> /kind task
> /kind feature
**What does this PR do / why do we need it**:
new、free使用规范修改,new需要用nothrow后判空,free后需要把指针置为nullptr
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: Fixes #<issue number>, or Fixes (paste link of issue).
-->
Fixes #
**Special notes for your reviewers**:
See merge request: Ascend/pytorch!25393 | 7 个月前 |