Guest User

Untitled

a guest
Feb 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. def abs1(x):
  2. return tf.maximum( 0.0, x ) + tf.maximum( 0.0, -x )
  3.  
  4. def abs2(x):
  5. return tf.nn.relu(x) + tf.nn.relu(-1.0*x)
Add Comment
Please, Sign In to add comment