• Pascal Lamblin's avatar
    dtype of tensor.sum(): forbid downcasting · 6a7aa408
    Pascal Lamblin 提交于
    If the output dtype would force a downcasting of the values
    (for instance, summing a float vector into an integer), a TypeError
    is now raised.
    
    Also, a Sum node has to have a non-None dtype. It is checked in
    make_node because for some reason the pretty-printing mechanism needs to
    instanciate "Sum()".
    6a7aa408
名称
最后提交
最后更新
..
deprecated 正在载入提交数据...
nnet 正在载入提交数据...
signal 正在载入提交数据...
tests 正在载入提交数据...
__init__.py 正在载入提交数据...
basic.py 正在载入提交数据...
blas.py 正在载入提交数据...
blas_c.py 正在载入提交数据...
blas_headers.py 正在载入提交数据...
blas_scipy.py 正在载入提交数据...
elemwise.py 正在载入提交数据...
elemwise_cgen.py 正在载入提交数据...
inplace.py 正在载入提交数据...
opt.py 正在载入提交数据...
opt_uncanonicalize.py 正在载入提交数据...
randomstreams.py 正在载入提交数据...
raw_random.py 正在载入提交数据...
shared_randomstreams.py 正在载入提交数据...
sharedvar.py 正在载入提交数据...
xlogx.py 正在载入提交数据...