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

无法创建一个空的 tensor #5399

Closed
puchapu opened this issue Jul 6, 2021 · 1 comment
Closed

无法创建一个空的 tensor #5399

puchapu opened this issue Jul 6, 2021 · 1 comment

Comments

@puchapu
Copy link
Contributor

puchapu commented Jul 6, 2021

在一些算子中可能需要返回一个空的 tensor,如 nonzeroargwhere
但在执行 flow.tensor(np.array([])) 以及 flow.tensor([]) 均会报以下错误
image

@wyg1997
Copy link
Contributor

wyg1997 commented Aug 10, 2021

这个特性在上面的PR中已经支持,可以再试一下

@wyg1997 wyg1997 closed this as completed Aug 10, 2021
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

No branches or pull requests

2 participants