Skip to content

Commit 9cc486e

Browse files
Fix misc. docstring issues in aesara.tensor.basic
1 parent b40ef27 commit 9cc486e

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

aesara/tensor/basic.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -756,14 +756,16 @@ def second(a, b):
756756

757757

758758
def ones_like(model, dtype=None, opt=False):
759-
"""equivalent of numpy.ones_like
759+
"""Equivalent of `numpy.ones_like`.
760+
760761
Parameters
761762
----------
762-
model : tensor
763-
dtype : data-type, optional
764-
opt : If True, we will return a constant instead of a graph when possible.
765-
Useful for Aesara optimization, not for user building a graph as this
766-
have the consequence that model isn't always in the graph.
763+
model
764+
dtype
765+
opt
766+
If ``True``, we will return a constant instead of a graph when possible.
767+
Useful for Aesara optimization, not for user building a graph as this
768+
have the consequence that model isn't always in the graph.
767769
768770
Returns
769771
-------
@@ -782,14 +784,16 @@ def ones_like(model, dtype=None, opt=False):
782784

783785

784786
def zeros_like(model, dtype=None, opt=False):
785-
"""equivalent of numpy.zeros_like
787+
"""Equivalent of `numpy.zeros_like`.
788+
786789
Parameters
787790
----------
788-
model : tensor
789-
dtype : data-type, optional
790-
opt : If True, we will return a constant instead of a graph when possible.
791-
Useful for Aesara optimization, not for user building a graph as this
792-
have the consequence that model isn't always in the graph.
791+
model
792+
dtype
793+
opt
794+
If ``True``, we will return a constant instead of a graph when possible.
795+
Useful for Aesara optimization, not for user building a graph as this
796+
have the consequence that model isn't always in the graph.
793797
794798
Returns
795799
-------

0 commit comments

Comments
 (0)