SHARE
TWEET

Untitled

a guest Feb 18th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top