@@ -756,14 +756,16 @@ def second(a, b):
756
756
757
757
758
758
def ones_like (model , dtype = None , opt = False ):
759
- """equivalent of numpy.ones_like
759
+ """Equivalent of `numpy.ones_like`.
760
+
760
761
Parameters
761
762
----------
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.
767
769
768
770
Returns
769
771
-------
@@ -782,14 +784,16 @@ def ones_like(model, dtype=None, opt=False):
782
784
783
785
784
786
def zeros_like (model , dtype = None , opt = False ):
785
- """equivalent of numpy.zeros_like
787
+ """Equivalent of `numpy.zeros_like`.
788
+
786
789
Parameters
787
790
----------
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.
793
797
794
798
Returns
795
799
-------
0 commit comments