From 49e4a6e013fedc56ea6261eb2b7dd97389069b21 Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Mon, 18 Oct 2021 00:42:26 -0400 Subject: [PATCH] clarify device for asarray --- spec/API_specification/creation_functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/API_specification/creation_functions.md b/spec/API_specification/creation_functions.md index cf8355c5d..dc0f8374f 100644 --- a/spec/API_specification/creation_functions.md +++ b/spec/API_specification/creation_functions.md @@ -72,7 +72,7 @@ Convert the input to an array. - **device**: _Optional\[ <device> ]_ - - device on which to place the created array. Default: `None`. + - device on which to place the created array. If `device` is `None` and `x` is either an array or an object supporting DLPack, the output array device must be inferred from `x`. Default: `None`. - **copy**: _Optional\[ bool ]_