secretflow / spu

SPU (Secure Processing Unit) aims to be a provable, measurable secure computation device, which provides computation ability while keeping your private data protected.
https://www.secretflow.org.cn/docs/spu/en/
Apache License 2.0
230 stars 99 forks source link

使用SPU实现两个accuracy函数 #726

Open Yeekin-GYJ opened 3 months ago

Yeekin-GYJ commented 3 months ago

此 ISSUE 为 隐语开源共建计划(SecretFlow Open Source Contribution Plan,简称 SF OSCP)任务 ISSUE,欢迎社区开发者参与共建~ 若有感兴趣想要认领的任务,但还未报名,辛苦先完成报名进行哈~

任务介绍

github-actions[bot] commented 2 months ago

Stale issue message. Please comment to remove stale tag. Otherwise this issue will be closed soon.

1160300918 commented 1 month ago

1160300918 Give it to me

1160300918 commented 1 month ago

在spu项目中执行bazel build //... -c dbg命令时报错信息如下,请问是否不支持mac的M系列芯片 image

anakinxc commented 1 month ago

在spu项目中执行bazel build //... -c dbg命令时报错信息如下,请问是否不支持mac的M系列芯片 image

支持,请确认你的 shell 和 bazel 等都是 arm64 的版本

1160300918 commented 1 month ago

谢谢老师,这个问题已解决,但是编译过程中提示cmake找不到flatc导致错误,但是我的flatbuffer是安装了并且配置了PATH变量的,对bazel不是很熟悉,是否需要修改一些配置文件之类的,请老师指导 image image

anakinxc commented 1 month ago

暂时先别用 -c dbg

1160300918 commented 1 month ago

目前已写完accuracy的代码,simulator的单元测试已经跑通,但是emulator在跑的时候读不出example/python/conf下的配置文件,无法初始化emulator,请老师看下是否需要修改utils目录下的bazel文件,谢谢 image

deadlywing commented 1 month ago

@1160300918 hi,,这个的正确性是没问题的,,(写这个FIXME主要是这个依赖到了sml和spu以外的地方)

我理解你读不出conf的配置,可能是因为你的那个程序bazel写的有问题,,如果你依赖到了外部配置文件,且使用了相对路径,是需要在bazel中指定data字段,如:(当然具体data里的路径取决于你到底使用了哪里的conf哈)

image

deadlywing commented 1 month ago

BTW,如果你程序写好了,可以发起一个PR,这样代码问题更好讨论~

Best wishes