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》
定义移动至tensor.py
[WIP]add data_ptrto add data_ptr 9 months agoadd data_ptrto [WIP]add data_ptr 9 months ago适配safetensors,该pr合入后,safetensors.torch目录下功能将完全支持,不用做其他适配修改。
[WIP]add data_ptrto [WIP]update storage 9 months ago原有告警会刷屏打印,用户体验较差,现改为每次执行仅打印一次
[WIP]update storageto update storage 9 months ago在FAQ写一个典型不支持的代码使用样例
done
图模式下语法编译是否支持?
本地验证,严格图模式下可通过,正常打印
存在需要多次打印场景?
warnning加在接口里,每次调用接口就会打印,有的接口被频繁调用,就会整个屏幕都显示warning,调这个接口,就只第一次出现的时候打印一次,后面相同的告警信息就不打印了
统一整改为只打印一次
对应原来支持的两种场景,返回单个元素和返回一段tensor,现在这种表达是否能支持?
直接调用numpy切片,如果是单元素直接返回scalar,如果是slice返回ndarray,torch该接口返回的也不是tensor类型,已做适配,如果是slice返回storage类型
为什么这段逻辑会变复杂?
view传dtype的逻辑不是做astype,之前封的不太对,是数据对应的字节,以dtype类型读取
为什么这个地方不能使用_update_referenced_tensor来更新tensor的值?
如果resize_往小了变,torch打印tensor也会报错.如果resize往大了变,tensor打印的时候还是原先的数据shape,所以不需要更新tensor
__getitem__和__setitem__里面为什么frombuffer在无法取到字典内key值时返回np.float32,而不是保持uint8
typedstorage的类型和tensor的默认类型保持一致,所以是fp32,untypedstorage类型是uint8,不过这个场景应该不会有取到默认值的场景.
会有_TypeDict没有保存到的数据格式么?
已补充bool和复数类型,其他没有识别到
ab16c042a6
.