Skip to content

Commit a995679

Browse files
committed
Remove opinionated message about ignore_duplicates.
Setting to false can lead to slower code on C/Numba backend which don't support np.add.at natively.
1 parent 9dad122 commit a995679

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pytensor/tensor/subtensor.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,11 +1456,8 @@ def inc_subtensor(
14561456
views; if they overlap, the result of this `Op` will generally be
14571457
incorrect. This value has no effect if ``inplace=False``.
14581458
ignore_duplicates
1459-
This determines whether or not ``x[indices] += y`` is used or
1460-
``np.add.at(x, indices, y)``. When the special duplicates handling of
1461-
``np.add.at`` isn't required, setting this option to ``True``
1462-
(i.e. using ``x[indices] += y``) can resulting in faster compiled
1463-
graphs.
1459+
This determines whether ``x[indices] += y`` is used or
1460+
``np.add.at(x, indices, y)``.
14641461
14651462
Examples
14661463
--------

0 commit comments

Comments
 (0)