Tensorflow - ValueError: Parent directory of trained_variables.ckpt doesn't exist, can't save
saver.save(sess, "./trained_variables.ckpt")
I would guess that you're trying to save the file in a folder (directory) that doesn't exist...
Try using an absolute path for the file instead of just the bare filename.
You might want to check what your current working directory is... that could clear up things.
Does that help?
-josh
I've put the absoluth path of the file instead of the bare filename and it worked. This is the final code
saver.save(sess, os.path.join(os.getcwd(), 'trained_variables2.ckpt'))