Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
May 28th, 2018
118
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
my_list = [0.3, 0.5, 0.79, 0.2, 0.11]
m = max(my_list)
[0 if i != m else i for i in my_list]
[0, 0, 0.79, 0, 0]
a_max = tf.where(tf.equal(a, tf.reduce_max(a)), a, tf.zeros_like(a))
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
JavaScript | 2 min ago | 1.08 KB
Untitled
Kotlin | 4 min ago | 1.89 KB
rychle a bezchybne very good minimax s T
Python | 5 min ago | 4.09 KB
Задача 7
Python | 9 min ago | 0.28 KB
NO FUNCIONA BIEN
Python | 10 min ago | 2.68 KB
bla bla
C++ | 15 min ago | 1.45 KB
Yapidor
Lua | 19 min ago | 1.26 KB
Untitled
HTML | 21 min ago | 0.26 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!