Skip to content

Instantly share code, notes, and snippets.

View alanwang93's full-sized avatar

Yifan WANG alanwang93

  • Tencent
  • Shanghai
View GitHub Profile
# Working example for my blog post at:
# https://danijar.github.io/structuring-your-tensorflow-models
import functools
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
def doublewrap(function):
"""
A decorator decorator, allowing to use the decorator to be used without