Skip to content

Commit ad19a84

Browse files
DOC Clarify that prediction data with array API must be on same device (scikit-learn#33848)
1 parent 7501a86 commit ad19a84

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/modules/array_api.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ The example code snippet below demonstrates how to use `CuPy
9292
After the model is trained, fitted attributes that are arrays will also be from
9393
the same Array API namespace as the training data. For example, if CuPy's Array
9494
API namespace was used for training, then fitted attributes will be on the GPU.
95-
Passing data in a different namespace to ``transform`` or ``predict`` is an
96-
error::
95+
Passing data in a different namespace or in a different device within the same
96+
namespace to ``transform`` or ``predict`` is an error::
9797

9898
>>> with config_context(array_api_dispatch=True):
9999
... lda.transform(X_np)

0 commit comments

Comments
 (0)