a guest Feb 18th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def abs1(x):
- return tf.maximum( 0.0, x ) + tf.maximum( 0.0, -x )
- def abs2(x):
- return tf.nn.relu(x) + tf.nn.relu(-1.0*x)
RAW Paste Data