From 094caa98e14a9a7688bf1fd8f8dda180039e4e19 Mon Sep 17 00:00:00 2001 From: Zolisa Bleki Date: Mon, 5 Feb 2024 10:41:31 +0200 Subject: [PATCH] DOC: Remove redundant import of `TensorType` in tensor creation docs --- doc/reference/tensor/create.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/reference/tensor/create.rst b/doc/reference/tensor/create.rst index af84c9c8ea..4688cfb322 100644 --- a/doc/reference/tensor/create.rst +++ b/doc/reference/tensor/create.rst @@ -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 ------------------