Skip to content

Commit

Permalink
DOC: Remove redundant import of TensorType in tensor creation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zoj613 authored and brandonwillard committed Feb 5, 2024
1 parent 49ae74e commit 094caa9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/reference/tensor/create.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ for a 0-dimensional `ndarray` of integers with the name ``'myvar'``:
>>> x = at.scalar('myvar', dtype='int32')
>>> x = at.iscalar('myvar')
>>> x = at.tensor(dtype='int32', shape=(), name='myvar')
>>> from aesara.tensor.type import TensorType
>>> x = TensorType(dtype='int32', shape=())('myvar')
>>> x = at.TensorType(dtype='int32', shape=())('myvar')

Basic constructors
------------------
Expand Down

0 comments on commit 094caa9

Please sign in to comment.