From 217c29d5a8a79ce867f9837359e5ebbb23fc8446 Mon Sep 17 00:00:00 2001 From: Athan Reines Date: Mon, 20 Sep 2021 03:03:22 -0700 Subject: [PATCH] Update device guidance --- spec/API_specification/creation_functions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/API_specification/creation_functions.md b/spec/API_specification/creation_functions.md index 505708f30..7b22063da 100644 --- a/spec/API_specification/creation_functions.md +++ b/spec/API_specification/creation_functions.md @@ -127,7 +127,7 @@ Returns an uninitialized array with the same `shape` as an input array `x`. - **device**: _Optional\[ <device> ]_ - - device on which to place the created array. If `device` is `None`, the default device must be used, not `x.device`. Default: `None`. + - device on which to place the created array. If `device` is `None`, the output array device must be inferred from `x`. Default: `None`. #### Returns @@ -247,7 +247,7 @@ Returns a new array filled with `fill_value` and having the same `shape` as an i - **device**: _Optional\[ <device> ]_ - - device on which to place the created array. If `device` is `None`, the default device must be used, not `x.device`. Default: `None`. + - device on which to place the created array. If `device` is `None`, the output array device must be inferred from `x`. Default: `None`. #### Returns @@ -370,7 +370,7 @@ Returns a new array filled with ones and having the same `shape` as an input arr - **device**: _Optional\[ <device> ]_ - - device on which to place the created array. If `device` is `None`, the default device must be used, not `x.device`. Default: `None`. + - device on which to place the created array. If `device` is `None`, the output array device must be inferred from `x`. Default: `None`. #### Returns @@ -478,7 +478,7 @@ Returns a new array filled with zeros and having the same `shape` as an input ar - **device**: _Optional\[ <device> ]_ - - device on which to place the created array. If `device` is `None`, the default device must be used, not `x.device`. Default: `None`. + - device on which to place the created array. If `device` is `None`, the output array device must be inferred from `x`. Default: `None`. #### Returns