.. _f-shapecontainer: module ``onnxrt.ops_shape.shape_container`` =========================================== .. inheritance-diagram:: mlprodict.onnxrt.ops_shape.shape_container Short summary +++++++++++++ module ``mlprodict.onnxrt.ops_shape.shape_container`` Class ShapeContainer :githublink:`%|py|5` Classes +++++++ +-------------------------------------------------------------------------------------+----------------------------------------------------------------+ | class | truncated documentation | +=====================================================================================+================================================================+ | :class:`ShapeContainer ` | Stores all infered shapes as :class:`ShapeResult`. Attributes: | +-------------------------------------------------------------------------------------+----------------------------------------------------------------+ Methods +++++++ +-------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+ | method | truncated documentation | +=============================================================================================================+==============================================================================================+ | :py:meth:`__contains__ ` | Operator in. | +-------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+ | :py:meth:`__getitem__ ` | Retrieves one shape from its name. | +-------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +-------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+ | :py:meth:`__len__ ` | usual | +-------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+ | :py:meth:`__repr__ ` | usual | +-------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+ | :py:meth:`__str__ ` | Displays. | +-------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+ | :meth:`copy ` | Makes a copy. | +-------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+ | :meth:`get ` | Returns the value of attribute `resolved_` (method `resolve()` must have been called first). | +-------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+ | :meth:`get_all_constraints ` | Gathers all constraints. | +-------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+ | :meth:`get_new_name ` | Returns a variable name when a dimension is not specified. | +-------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+ | :meth:`resolve ` | Resolves all constraints. It adds the attribute `resolved_`. | +-------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+ | :meth:`update ` | Updates one shape. Returns True if the shape was different. | +-------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlprodict.onnxrt.ops_shape.shape_container :members: :special-members: __init__ :show-inheritance: