Bonjour,
pour un projet je dois utiliser tensorflow.
Je suis en train d'apprendre et j'aimerai écrire dans un fichier en python avec tensorflow.
J'ai fais ça:
import tensorflow as tf def write_file(path, text): fileWrite = tf.python_io.TFRecordWriter(path); fileWrite.write(text); fileWrite.close(); def read_file(path): fileRead = tf.read_file(path, "Name") # Start tf session sess = tf.Session(); print sess.run(fileRead); if __name__ == '__main__': path = "/home/remi/TensorFlow-Examples/text"; write_file(path, "Salut"); read_file(path);
mais il m'écrit pleins de caractère bizarre en plus de mon message.
PS: Est-ce que vous savez ou je peux trouver un tuto de tensorflow en c++ ?
Cordialement.