Top

hypergan.ops.tensorflow.extended_ops module

import tensorflow as tf

def l2_distance(a,b):
    return tf.square(a-b)

def l1_distance(a,b):
    return tf.abs(a-b)

Functions

def l1_distance(

a, b)

def l1_distance(a,b):
    return tf.abs(a-b)

def l2_distance(

a, b)

def l2_distance(a,b):
    return tf.square(a-b)