Deleting a branch is permanent. It CANNOT be undone. Continue?
Deleting a branch is permanent. It CANNOT be undone. Continue?
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》
test
原始类型为bool,输出类型为int;dtype指定为bool,输出类型为bool
dtype为bool类型最后还是转为bool输出
已修改
tensor([-1,1]),sum(dtype=bool)的情况,torch会把-1和1当作bool型处理,结果为True。ms.ops.sum不能处理bool型,如果先转换为int型,-1和1的sum为0,结果会返回False,所以需要先转换成bool再转int。
c54396b64e
.