aig-upf/Partition-HRL

bug with protocol 2 and 3

Closed this issue · 0 comments

The following code in __main__.py causes a bug when running protocols 2 and 3.

os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"  # see issue #152
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"

tf.enable_eager_execution()
# todo fix this The name tf.enable_eager_execution is deprecated. Please use tf.compat.v1.enable_eager_execution instead


# Just to be sure that we don't have some others graph loaded
tf.reset_default_graph()
# todo fix this:  The name tf.reset_default_graph is deprecated. Please use tf.compat.v1.reset_default_graph instead.

How can we execute it only for protocol 4 (when agent = agent_a2c) ?