def test_abs_error(): cost = abs_error(.5 * X_sym, X_sym) theano.function([X_sym], cost, mode="FAST_COMPILE")
def test_abs_error(): graph = OrderedDict() X_sym = add_datasets_to_graph([X], ["X"], graph) cost = abs_error(.5 * X_sym, X_sym) theano.function([X_sym], cost, mode="FAST_COMPILE")