Browse Source

fixed typo

refactoring
sp 11 months ago
parent
commit
68ce459756
  1. 2
      examples/shields/rl/callbacks.py

2
examples/shields/rl/callbacks.py

@ -28,7 +28,7 @@ class ShieldInfoCallback(DefaultCallbacks):
class MyCallbacks(DefaultCallbacks):
def on_algorithm_init(self, algorithm: Algorithm, **kwargs):
file_writer = tf.summary.create_file_writer(algorithm.log_dir)
file_writer = tf.summary.create_file_writer(algorithm.logdir)
with file_writer.as_default():
tf.summary.text("first_text", "testing", step=0)

Loading…
Cancel
Save