提交 260a9a1b authored 作者: Xavier Bouthillier's avatar Xavier Bouthillier

Merge pull request #3474 from jan-matthis/renaming-tensor4d-to-tensor4

renaming tensor4d to tensor4 in stack examples
...@@ -723,9 +723,9 @@ Creating Tensor ...@@ -723,9 +723,9 @@ Creating Tensor
>>> 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
......
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论