haojin2 commented on a change in pull request #17904: [Numpy] add: numpy op
trilindices
URL: https://github.com/apache/incubator-mxnet/pull/17904#discussion_r400590050
##########
File path: python/mxnet/symbol/numpy/_symbol.py
##########
@@ -2197,6 +2197,87 @@ def tril(m, k=0):
"""
return _npi.tril(m, k)
+@set_module('mxnet.symbol.numpy')
+def tril_indices(n, k=0, m=None):
+ """
+ Return the indices for the lower-triangle of an (n, m) array.
+
+ Parameters
+ ----------
+ n : int
+ The row dimension of the arrays for which the returned
+ indices will be valid.
+ k : int, optional
+ Diagonal offset (see `tril` for details).
+ m : int, optional
+ .. versionadded:: 1.9.0
+
+ The column dimension of the arrays for which the returned
+ arrays will be valid.
+ By default `m` is taken equal to `n`.
+
+
+ Returns
+ -------
+ inds : tuple of arrays
Review comment:
here it should be `tuple of _Symbol` I guess
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services