This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
bvh_file = "Example1.bvh" | |
def identifier(scanner, token): return "IDENT", token | |
def operator(scanner, token): return "OPERATOR", token | |
def digit(scanner, token): return "DIGIT", token | |
def open_brace(scanner, token): return "OPEN_BRACE", token | |
def close_brace(scanner, token): return "CLOSE_BRACE", token |