提交 eb3b8c1e authored 作者: Frederic's avatar Frederic

Added docstring.

上级 4f7338d7
......@@ -4,6 +4,11 @@ from theano.gof.cc import hash_from_code
def hash_from_ndarray(data):
"""Return a hash from an ndarray
It take care of the data, shapes, strides and dtype.
"""
# We need to hash the shapes and strides as hash_from_code only hashes
# the data buffer. Otherwise, this will cause problem with shapes like:
# (1, 0) and (2, 0) and problem with inplace transpose.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论