.. _f-shaperesult: module ``onnxrt.ops_shape.shape_result`` ======================================== .. inheritance-diagram:: mlprodict.onnxrt.ops_shape.shape_result Short summary +++++++++++++ module ``mlprodict.onnxrt.ops_shape.shape_result`` Class ShapeResult :githublink:`%|py|5` Classes +++++++ +--------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | class | truncated documentation | +============================================================================================+=========================================================================+ | :class:`OnnxKind ` | Describes a result type. | +--------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :class:`ShapeConstraint ` | One constraint. | +--------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :class:`ShapeConstraintList ` | A list of ShapeConstraint. | +--------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :class:`ShapeResult ` | Contains information about shape and type of a result in an onnx graph. | +--------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ Static Methods ++++++++++++++ +-----------------------------------------------------------------------------------+-----------------------------------------------------+ | staticmethod | truncated documentation | +===================================================================================+=====================================================+ | :meth:`broadcast ` | Broadcasts dimensions for an element wise operator. | +-----------------------------------------------------------------------------------+-----------------------------------------------------+ Methods +++++++ +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | method | truncated documentation | +====================================================================================================+====================================================================================================+ | :py:meth:`__contains__ ` | | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__eq__ ` | usual | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__eq__ ` | Tells if two shapes are identical. | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__iter__ ` | | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__len__ ` | | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__repr__ ` | usual | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__repr__ ` | | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__repr__ ` | Usual | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :meth:`append ` | Appends a new constraint to the list. | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :meth:`copy ` | Makes a copy of the object. | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :meth:`copy ` | Copies the object. | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :meth:`copy ` | Returns a copy for the result. | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :meth:`is_compatible ` | Tells if this shape is compatible with the given tuple. | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :meth:`merge ` | Merges this constraint with *cst* into this one. | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :meth:`merge ` | Merges constraints from *other_results* into *self*. | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :meth:`n_dims ` | Returns the number of dimensions if it is a tensor. Raises an exception otherwise. | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :meth:`resolve ` | Results variables in a shape using values stored in *variables*. It does not copy any constraints. | +----------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlprodict.onnxrt.ops_shape.shape_result :members: :special-members: __init__ :show-inheritance: