I'm trying to convert the output of my python script that uses Tensorflow so that it can be passed as an input string to another file.
The output I get in the console is the following:
('Input from genesis: ', array([ 7.07872450e-01, 3.32354023e+04, 5.85043602e+01,
1.91101468e+00, 3.83828156e+05, 3.76164818e+01,
2.11525035e+00, 3.73708814e-01, 9.32167812e+04], dtype=float32))
('Output from genesis: ', '[array([ 0.66993088, 1. , 1. , 0.87113315, 1. ,\n 1. , 0.8923766 , 0.59235483, 1. ], dtype=float32)]')
Execution time: 2.57894515991 seconds
Is there a relatively easy way to format the array output as a string of the array? i.e. [ 1, 2, 3, 4]?
Bare in mind this is how it is inputted with the use of tf.Variable:
a = tf.Variable(tf.constant([random.uniform(0.,3.),random.uniform(0.,400000.),random.uniform(0.,128.),random.uniform(0.,3.),random.uniform(0.,400000.),random.uniform(0.,128.),random.uniform(0.,3.),random.uniform(0.,3.),random.uniform(0.,400000.)], dtype=tf.float32))
Cheers.