-
Notifications
You must be signed in to change notification settings - Fork 108
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
[Feature]: 如何得到安全多方计算时具体的通信轮数和通信量呢? #974
Comments
试试enable_hal_profile,会打出日志,code: SPDLOG_INFO(
"- {}, executed {} times, duration {}s, send bytes {} recv "
"bytes {}",
key.name, stat.count, stat.getTotalTimeInSecond(), stat.send_bytes,
stat.recv_bytes);
} |
我得到了输出日志 |
首先cheetah有初始化; |
cheetah用了全同态加密,同 secretflow/secretflow#1648 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Request Type
Usability
Have you searched existing issues?
Yes
Is your feature request related to a problem?
我正在使用spu中的cheetah进行安全两方计算
def data_a():
return np.array([5,4])
alice_data =alice(data_a)()
def data_b():
return np.array([1,2])
bob_data = bob(data_b)()
def secure_multiply(x,y):
return x*y
result = spu(secure_multiply)(alice_data, bob_data)
Describe features you want to add to SPU
目前,我尝试启用了 enable_pphlo_profile 和 enable_action_trace,但无法直接获取通信统计信息。希望框架能够提供以下功能:
1.输出每次操作的通信轮数和通信量;
2.在任务完成后,返回完整的通信统计报告。
Describe features you want to add to SPU
能不能提供一个接口,类似enable_action_trace这种,能够返回整个函数运算过程中的通信轮数和通信量。
The text was updated successfully, but these errors were encountered: