if any(k in self.summary_labels for k in ["inputs", "actions"]):
for name in sorted(actions):
tf.contrib.summary.histogram(name=(self.scope + "/inputs/actions/" + name), tensor=actions[name])
if any(k in self.summary_labels for k in ["inputs", "rewards"]):
tf.contrib.summary.histogram(name=(self.scope + "/inputs/rewards"), tensor=reward)
if self.summarizer_spec is not None:
After Change
if "inputs" in self.summary_labels or "states" in self.summary_labels:
for name in sorted(states):
tf.contrib.summary.histogram(name=("states-" + name), tensor=states[name])
if "inputs" in self.summary_labels or "actions" in self.summary_labels:
for name in sorted(actions):
tf.contrib.summary.histogram(name=("actions-" + name), tensor=actions[name])
if "inputs" in self.summary_labels or "reward" in self.summary_labels: