def squared_error(a, b):
 (a, b) = align_targets(a, b)
 return theano.tensor.square((a - b))

def squared_error ( a , b ) : ( a , b ) = align_targets ( a , b ) return theano . tensor . square ( ( a - b ) )
computes the element-wise squared difference between two tensors .