• James Bergstra's avatar
    Added tensor.autocast_int and tensor.autocast_float · f1b7e125
    James Bergstra 提交于
    These two functions are used by as_tensor_variable to determine how to turn
    python ints and floats into ndarrays for TensorConstants.
    
    This provides an i-hope-not-too-hacky way for config.floatX=='float32' to make it so
    that python literals like 1.1 don't force an upcast in expressions like
    (fvector() + 1.1).
    
    Another option would have been to leave the downcast of 1.1 in the graph as a
    symbolic node that would be pre-computed at compile time, but I think that would
    behave pretty similarly, and further burden the optimizer.
    f1b7e125
名称
最后提交
最后更新
..
__init__.py 正在载入提交数据...
test_basic.py 正在载入提交数据...
test_blas.py 正在载入提交数据...
test_casting.py 正在载入提交数据...
test_complex.py 正在载入提交数据...
test_elemwise.py 正在载入提交数据...
test_gc.py 正在载入提交数据...
test_merge.py 正在载入提交数据...
test_misc.py 正在载入提交数据...
test_naacl09.py 正在载入提交数据...
test_nnet.py 正在载入提交数据...
test_opt.py 正在载入提交数据...
test_randomstreams.py 正在载入提交数据...
test_raw_random.py 正在载入提交数据...
test_shared_randomstreams.py 正在载入提交数据...
test_xlogx.py 正在载入提交数据...