Closed toelli-msft closed 2 years ago
@cgravill @awf
sqrl checks whether the mean of its input is negative. The mean is then never used again. Wouldn't checking the sum be (slightly) quicker? Is there another reason to use mean here?
sqrl
mean
sum
https://github.com/microsoft/knossos-ksc/blob/88e1491849f10893cb97e04281835477d6a19c9b/examples/dl-capsule/sqrl.py#L12-L13
No reason at all - we should change it.
@cgravill @awf
sqrl
checks whether themean
of its input is negative. Themean
is then never used again. Wouldn't checking thesum
be (slightly) quicker? Is there another reason to usemean
here?https://github.com/microsoft/knossos-ksc/blob/88e1491849f10893cb97e04281835477d6a19c9b/examples/dl-capsule/sqrl.py#L12-L13