Input / Output
Input
openzl.ext.Input
__module__ = 'openzl.ext'
class-attribute
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'.
content
property
(self) -> openzl.ext.Buffer
content_size
property
(self) -> int
elt_width
property
(self) -> int
num_elts
property
(self) -> int
string_lens
property
(self) -> openzl.ext.Buffer
type
property
(self) -> openzl.ext.Type
__init__()
method descriptor
init(self, type: openzl.ext.Type, data: ndarray[order='C', device='cpu', writable=False], lengths: ndarray[shape=(*), order='C', device='cpu', writable=False] | None = None) -> None
__new__(*args, **kwargs)
builtin
Create and return a new object. See help(type) for accurate signature.
get_int_metadata()
method descriptor
get_int_metadata(self, arg: int, /) -> int | None
set_int_metadata()
method descriptor
set_int_metadata(self, arg0: int, arg1: int, /) -> None
openzl.ext.Buffer
__module__ = 'openzl.ext'
class-attribute
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'.
content_size
property
(self) -> int
elt_width
property
(self) -> int
num_elts
property
(self) -> int
type
property
(self) -> openzl.ext.Type
__init__(*args, **kwargs)
method descriptor
Initialize self. See help(type(self)) for accurate signature.
__new__(*args, **kwargs)
builtin
Create and return a new object. See help(type) for accurate signature.
as_bytes()
method descriptor
as_bytes(self) -> bytes
as_dltensor()
method descriptor
as_dltensor(self) -> ndarray[order='C', device='cpu', writable=False]
as_nparray()
method descriptor
as_nparray(self) -> numpy.ndarray[order='C', device='cpu', writable=False]
as_pytensor()
method descriptor
as_pytensor(self) -> torch.Tensor[order='C', device='cpu', writable=False]
Output
openzl.ext.Output
__module__ = 'openzl.ext'
class-attribute
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'.
content
property
(self) -> openzl.ext.Buffer
content_capacity
property
(self) -> int
content_size
property
(self) -> int
elt_width
property
(self) -> int
elts_capacity
property
(self) -> int
mut_content
property
(self) -> openzl.ext.MutBuffer
mut_string_lens
property
(self) -> openzl.ext.MutBuffer
num_elts
property
(self) -> int
string_lens
property
(self) -> openzl.ext.Buffer
type
property
(self) -> openzl.ext.Type
__init__()
method descriptor
init(self, type: openzl.ext.Type, data: ndarray[order='C', device='cpu'], lengths: ndarray[shape=(*), order='C', device='cpu'] | None = None) -> None
__new__(*args, **kwargs)
builtin
Create and return a new object. See help(type) for accurate signature.
commit()
method descriptor
commit(self, arg: int, /) -> None
get_int_metadata()
method descriptor
get_int_metadata(self, arg: int, /) -> int | None
reserve_string_lens()
method descriptor
reserve_string_lens(self, arg: int, /) -> None
set_int_metadata()
method descriptor
set_int_metadata(self, arg0: int, arg1: int, /) -> None
openzl.ext.MutBuffer
__module__ = 'openzl.ext'
class-attribute
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'.
content_size
property
(self) -> int
elt_width
property
(self) -> int
num_elts
property
(self) -> int
type
property
(self) -> openzl.ext.Type
__init__(*args, **kwargs)
method descriptor
Initialize self. See help(type(self)) for accurate signature.
__new__(*args, **kwargs)
builtin
Create and return a new object. See help(type) for accurate signature.
as_dltensor()
method descriptor
as_dltensor(self) -> ndarray[order='C', device='cpu']
as_nparray()
method descriptor
as_nparray(self) -> numpy.ndarray[order='C', device='cpu']
as_pytensor()
method descriptor
as_pytensor(self) -> torch.Tensor[order='C', device='cpu']