提交 4a1dfeeb authored 作者: jan-matthis's avatar jan-matthis

renamed tensor4d to tensor4 in example of stack

上级 5708a1a0
...@@ -4048,9 +4048,9 @@ def stack(*tensors, **kwargs): ...@@ -4048,9 +4048,9 @@ def stack(*tensors, **kwargs):
>>> x = theano.tensor.stack([a, b, c]) >>> x = theano.tensor.stack([a, b, c])
>>> x.ndim # x is a vector of length 3. >>> x.ndim # x is a vector of length 3.
1 1
>>> a = theano.tensor.tensor4d() >>> a = theano.tensor.tensor4()
>>> b = theano.tensor.tensor4d() >>> b = theano.tensor.tensor4()
>>> c = theano.tensor.tensor4d() >>> c = theano.tensor.tensor4()
>>> x = theano.tensor.stack([a, b, c]) >>> x = theano.tensor.stack([a, b, c])
>>> x.ndim # x is a 5d tensor. >>> x.ndim # x is a 5d tensor.
5 5
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论