Flags class¶
- class dpctl.tensor._flags.Flags¶
Helper class to query the flags of a
dpctl.tensor.usm_ndarrayinstance, which describe how the instance interfaces with its underlying memory.Note that dictionary-like access to some members is permitted:
- “C”, “C_CONTIGUOUS”:
Equivalent to
c_contiguous- “F”, “F_CONTIGUOUS”:
Equivalent to
f_contiguous- “W”, “WRITABLE”:
Equivalent to
writable- “FC”:
Equivalent to
fc- “FNC”:
Equivalent to
fnc- “FORC”, “CONTIGUOUS”:
Equivalent to
forcandcontiguous
- c_contiguous¶
True if the memory layout of the
dpctl.tensor.usm_ndarrayinstance is C-contiguous.
- contiguous¶
True if the memory layout of the
dpctl.tensor.usm_ndarrayinstance is C-contiguous and F-contiguous. Equivalent to forc.
- f_contiguous¶
True if the memory layout of the
dpctl.tensor.usm_ndarrayinstance is F-contiguous.
- fc¶
True if the memory layout of the
dpctl.tensor.usm_ndarrayinstance is C-contiguous and F-contiguous.
- flags¶
Integer representation of the memory layout flags of
dpctl.tensor.usm_ndarrayinstance.
- fnc¶
True if the memory layout of the
dpctl.tensor.usm_ndarrayinstance is F-contiguous and not C-contiguous.
- forc¶
True if the memory layout of the
dpctl.tensor.usm_ndarrayinstance is C-contiguous or F-contiguous.
- writable¶
True if
dpctl.tensor.usm_ndarrayinstance is writable.