Skip to content

Instantly share code, notes, and snippets.

View tushuhei's full-sized avatar

Shuhei Iitsuka tushuhei

View GitHub Profile
@tushuhei
tushuhei / subexpr.py
Created August 11, 2016 10:33 — forked from anj1/subexpr.py
import types
import tensorflow as tf
import numpy as np
# Expressions are represented as lists of lists,
# in lisp style -- the symbol name is the head (first element)
# of the list, and the arguments follow.
# add an expression to an expression list, recursively if necessary.
def add_expr_to_list(exprlist, expr):