Made a change in python API to support the GPU version of unique OP working in static graph #27899
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR types
Bug fixes
PR changes
APIs
Describe
uniuqe OP GPU 版在静态图中报错:
在源码中的Resize处报错。原因是,在一些情况下,原本指向一个Tensor的指针指向了空,即对应的Tensor不存在,在API中没有被创建。
修改manipulation.py中的unique函数后,静态图中正确执行。