Skip to content

Instantly share code, notes, and snippets.

View u112358's full-sized avatar
🎯
Focusing

BingZhang Hu u112358

🎯
Focusing
View GitHub Profile
@u112358
u112358 / tensorboard_logging.py
Created August 18, 2017 16:04 — forked from gyglim/tensorboard_logging.py
Logging to tensorboard with manually generated summaries (not relying on summary ops)
"""Simple example on how to log scalars and images to tensorboard without tensor ops."""
__author__ = "Michael Gygli"
import tensorflow as tf
from StringIO import StringIO
import matplotlib.pyplot as plt
import numpy as np
class Logger(object):
"""Logging in tensorboard without tensorflow ops."""