Seems like you're using tensorflow 0.11 or older versions. If you see this git-commit, they replaced initialize_all_variables with global_variables_initializer.
So, either you can use initialize_all_variables or update to a newer version i.e. (0.12) or later.