From 68304d18e8f559489cf59988bcaab0f54799f001 Mon Sep 17 00:00:00 2001 From: Raphael Tony <30729856+raphaeltony@users.noreply.github.com> Date: Fri, 8 Sep 2023 12:55:07 +0530 Subject: [PATCH] Fixed tensorflow compatability issue Added 2 lines of code that make the project run on the latest version of TensorFlow --- deep_q_network.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deep_q_network.py b/deep_q_network.py index 1294f96..1a39291 100755 --- a/deep_q_network.py +++ b/deep_q_network.py @@ -1,7 +1,8 @@ #!/usr/bin/env python from __future__ import print_function -import tensorflow as tf +import tensorflow.compat.v1 as tf +tf.disable_v2_behavior() import cv2 import sys sys.path.append("game/")