| [security]fix 'new' and 'stoi'
Co-authored-by: SCh_zx<1325467101@qq.com>
# message auto-generated for no-merge-commit merge:
!26126 merge master into master
[security]fix 'new' and 'stoi'
Created-by: SCh_zx
Commit-by: SCh-zx;SCh_zx
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操作添加错误捕获;用strtol代替stoi
**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!26126 | 6 个月前 |