Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OUCMachineLearning/OUCML
/ l2_norm
Function
l2_norm
GAN/Self_attention_GAN_tensorflow/ops.py:179–180 ·
view source on GitHub ↗
(v, eps=1e-12)
Source
from the content-addressed store, hash-verified
177
return
w_norm
178
179
def
l2_norm(v, eps=1e-12):
180
return
v / (tf.reduce_sum(v ** 2) ** 0.5 + eps)
181
182
##################################################################################
183
# Loss function
Callers
1
spectral_norm
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected