Closed junyechen1996 closed 6 months ago
Good catch! As suggested in the call today: consider renaming to encode_gradient_and_range_checked_norm()
, or maybe just encode_gradient_and_norm()
. Make sure to also replace each instance of the variable encoded_gradient
that also has the norm in it with something distinctive.
Closed by #68 .
We currently return
encoded_gradient
fromencode_gradient()
method that contains the field elements converted from floating point numbers, and also the bits for L2-norm check. But when we unpack the encoded measurement ineval()
, we refer toencoded_gradient
as the field elements converted from floating point numbers only. It would be good to distinguish between the two.