You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns a new array having a specified `shape` and filled with `fill_value`.
196
196
@@ -206,7 +206,7 @@ Returns a new array having a specified `shape` and filled with `fill_value`.
206
206
207
207
- **dtype**: _Optional\[ <dtype> ]_
208
208
209
-
- output array data type. If `dtype` is `None`, the output array data type must be the default floating-point data type. Default: `None`.
209
+
- output array data type. If `dtype` is `None`, the output array data type must be inferred from `fill_value`. If it's an `int`, the output array dtype must be the default integer dtype; if it's a `float`, then the output array dtype must be the default floating-point data type; if it's a `bool` then the output array must have boolean dtype. Default: `None`.
210
210
211
211
- **device**: _Optional\[ <device> ]_
212
212
@@ -219,7 +219,7 @@ Returns a new array having a specified `shape` and filled with `fill_value`.
219
219
- an array where every element is equal to `fill_value`.
Returns a new array filled with `fill_value` and having the same `shape` as an input array `x`.
225
225
@@ -235,7 +235,7 @@ Returns a new array filled with `fill_value` and having the same `shape` as an i
235
235
236
236
- **dtype**: _Optional\[ <dtype> ]_
237
237
238
-
- output array data type. If `dtype` is `None`, the output array data type must be inferred from `x`. Default: `None`.
238
+
- output array data type. If `dtype` is `None`, the output array data type must be inferred from `fill_value` (see {ref}`function-full`). Default: `None`.
0 commit comments