Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit 97c15a7

Browse files
committed
Debug on CI
1 parent 4911f12 commit 97c15a7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lucid/optvis/objectives.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,13 @@ def _dot_cossim(x, y, cossim_pow=0):
178178
if cossim_pow == 0: return tf.reduce_mean(xy_dot)
179179
x_mags = tf.sqrt(_dot(x,x))
180180
y_mags = tf.sqrt(_dot(y,y))
181-
cossims = xy_dot / (eps + x_mags ) / (eps + y_mags)
181+
a = xy_dot
182+
b = (eps + x_mags )
183+
c = (eps + y_mags)
184+
d = a / b
185+
e = d / c
186+
print(a,b,c,d,e)
187+
cossims = e
182188
floored_cossims = tf.maximum(0.1, cossims)
183189
return tf.reduce_mean(xy_dot * floored_cossims**cossim_pow)
184190

0 commit comments

Comments
 (0)