Skip to content

Latest commit

 

History

History
22 lines (10 loc) · 344 Bytes

ActivationStdLoggingLayer.md

File metadata and controls

22 lines (10 loc) · 344 Bytes

TFSimilarity.layers.ActivationStdLoggingLayer

Computes the mean std of the activations of a layer.

TFSimilarity.layers.ActivationStdLoggingLayer(
    name, **kwargs
)

x = reduce_std(l2_normalize(inputs, axis=0), axis=-1)

And then aggregate the per-batch mean of x over each epoch.