Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1
2
3
4
5
6
7
import tensorflow as tf
def l2_distance(a,b):
return tf.square(a-b)
def l1_distance(a,b):
return tf.abs(a-b)