Skip to content

[Feature]: 如何得到安全多方计算时具体的通信轮数和通信量呢? #974

@numpyzu

Description

@numpyzu

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这种,能够返回整个函数运算过程中的通信轮数和通信量。

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions