Movatterモバイル変換


[0]ホーム

URL:


Skip to content
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 whicharray will be converted.

context:Context=None

Optional context to use, for specifyingContext.data_copy_concurrency.

copy:bool|None=None

Indicates whether the returned TensorStore may be a copy of the sourcearray, rather than a reference to it.

  • IfNone (default), the source array is copied only if it cannot bereferenced.

  • IfTrue, a copy is always made.

  • IfFalse, a copy is never made and an error is raised if the source datacan’t be referenced.

write:bool|None=None

Indicates whether the returned TensorStore is writable.

  • IfNone (default), the returned TensorStore may or may not be writable,depending on whether the source array converts to a writable NumPy array.

  • IfTrue, the returned TensorStore is required to be writable, and anerror is returned if the source array does not support writing.

  • IfFalse, the returned TensorStore is never writable, even if the sourcearray is writable.


[8]ページ先頭

©2009-2025 Movatter.jp