def np_tanh_fan(shape, random_state):
    # The . after the 6 is critical! shape has dtype int...
    bound = np.sqrt(np.sum(shape) / 6.)
    return random_state.uniform(low=-bound, high=bound,
                                size=shape).astype(theano.config.floatX)
dataset/ETHPy150Open kastnerkyle/SciPy2015/graphics_code/cvae/kdl_template.py/np_tanh_fan/swapped operands of `/`