-
tensorstore.array(array: ArrayLike, dtype: DTypeLike | None =
None, *, context: Context =None, copy: bool | None =None, write: bool | None =None) TensorStore Returns a TensorStore that reads/writes from an in-memory array.
- Parameters:¶
- array: ArrayLike¶
Source array.
- dtype: DTypeLike | None =
None¶ Data type to which
arraywill be converted.- context: Context =
None¶ Optional context to use, for specifying
Context.data_copy_concurrency.- copy: bool | None =
None¶ Indicates whether the returned TensorStore may be a copy of the source array, rather than a reference to it.
- write: bool | None =
None¶ Indicates whether the returned TensorStore is writable.
If
None(default), the returned TensorStore may or may not be writable, depending on whether the source array converts to a writable NumPy array.If
True, the returned TensorStore is required to be writable, and an error is returned if the source array does not support writing.If
False, the returned TensorStore is never writable, even if the source array is writable.