OpenMined / TenSEAL

A library for doing homomorphic encryption operations on tensors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to implement average on CKKS Tensor?

firstresponse502 opened this issue · comments

I used the code below to calculate average on unencrypted tensor but finding hard to do on CKKS Tensor even though I know Tenseal only provide addition, subtraction and multiplication operations. Any help will be appreciated.

for grad_list_tuple in zip(*scaled_weight_list):
layer_mean = tf.math.reduce_mean(grad_list_tuple, axis=0)