Answers for "cant use tensor flow on python script"

2

tensorflow math python

c = tf.constant([[1,2,3,4], [-1,-2,-3,-4], [5,6,7,8]])
tf.math.segment_sum(c, tf.constant([0, 0, 1]))
#  ==>  [[0 0 0 0]
#        [5 6 7 8]]
Posted by: Guest on August-12-2021
0

why tensorflow not working in .py file

##don't execute your file as 
sudo python3 <yourfile.py>

##just use 
python3 <yourfile.py>

## and also *don't* use file names like "imp.py", "tf.py",
Posted by: Guest on October-29-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language