jittor icon indicating copy to clipboard operation
jittor copied to clipboard

where()函数与torch行为不一致

Open wzever opened this issue 3 years ago • 3 comments

Var.where()方法与torch中的行为似乎不一致,请问有实现类似功能的函数吗?

torch.where(condition, x, y) -> [Tensor] Return a tensor of elements selected from either x or y, depending on condition. 屏幕截图 2022-04-04 234532

wzever avatar Apr 04 '22 15:04 wzever

谢谢您的反馈,最新版本jittor1.3.2.3已经与torch保持一致,目前jt.where同时支持一个参数和三个参数,其中一个参数的版本和numpy保持一致,三个参数的版本和torch保持一致

cjld avatar Apr 05 '22 04:04 cjld

谢谢回复。但在pip更新的时候报错: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb7 in position 8110: invalid start byte in installed-files.txt file at path: c:\users\...\python\python39\lib\site-packages\jittor-1.3.1.55-py3.9.egg-info\installed-files.txt

屏幕截图 2022-04-05 135241

请问该如何解决?感谢!

wzever avatar Apr 05 '22 05:04 wzever

您试试删除然后重新安装呢?

---原始邮件--- 发件人: "Pan @.> 发送时间: 2022年4月5日(周二) 中午1:57 收件人: @.>; 抄送: @.***>; 主题: Re: [Jittor/jittor] where()函数与torch行为不一致 (Issue #308)

谢谢回复。但在pip更新的时候报错: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb7 in position 8110: invalid start byte in installed-files.txt file at path: c:\users...\python\python39\lib\site-packages\jittor-1.3.1.55-py3.9.egg-info\installed-files.txt

请问该如何解决?感谢!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Jittor avatar Apr 05 '22 06:04 Jittor