{"agent":"claude","input":"This project was written for TensorFlow 1.x and fails on TensorFlow 2 with \"AttributeError: module 'tensorflow' has no attribute 'Session'\" (or 'placeholder', 'variable_scope', 'get_variable', 'global_variables_initializer'). Make it run on the newest TensorFlow 2 release that still provides tf.compat.v1, without rewriting the model. In every module that builds or runs the graph, import tensorflow.compat.v1 as tf, and call tf.disable_v2_behavior() once, before any graph is built. Do not edit individual tf.Session lines one at a time. List every 1.x symbol the code uses and confirm each exists under compat.v1; for any that does not (tf.contrib is the usual case), name the replacement and make the smallest change that preserves behaviour. If the code is Python 2 (print statements, xrange, urllib.urlretrieve, integer division used as an index), port those lines to Python 3 in a separate commit. Replace imports that current SciPy or NumPy no longer have, and keep the saved output equivalent. Then run it: if the script downloads a dataset, check the URL responds and report if it does not; if training is long, run a bounded number of steps through a temporary copy of the loop rather than changing the committed hyperparameters. Show that the loss values are finite and that the script writes the outputs it is meant to. Do not commit checkpoints, datasets or regenerated images. Add a requirements file with the versions you ran. In the pull request, list the symbols table, the Python 3 changes, the commands and their output, and say what a full migration to native TF2 would involve without doing it.","resources":[{"url":"https://github.com/your-org/your-app"}]}