module onnxrt.ops_shape.shape_container
#
Short summary#
module mlprodict.onnxrt.ops_shape.shape_container
Class ShapeContainer
Classes#
class |
truncated documentation |
---|---|
Stores all infered shapes as |
Methods#
method |
truncated documentation |
---|---|
Operator in. |
|
Retrieves one shape from its name. |
|
usual |
|
usual |
|
Displays. |
|
Makes a copy. |
|
Returns the value of attribute resolved_ (method resolve() must have been called first). |
|
Gathers all constraints. |
|
Returns a variable name when a dimension is not specified. |
|
Resolves all constraints. It adds the attribute resolved_. |
|
Updates one shape. Returns True if the shape was different. |
Documentation#
Class ShapeContainer
- class mlprodict.onnxrt.ops_shape.shape_container.ShapeContainer#
Bases:
object
Stores all infered shapes as
ShapeResult
.Attributes:
shapes: dictionary { result name: ShapeResult }
- names: some dimensions are unknown and represented as
variables, this dictionary keeps track of them
names_rev: reverse dictionary of names
- __contains__(key)#
Operator in.
- __getitem__(key)#
Retrieves one shape from its name.
- __init__()#
- __len__()#
usual
- __repr__()#
usual
- __str__()#
Displays.
- copy(deep=False)#
Makes a copy.
- get()#
Returns the value of attribute resolved_ (method resolve() must have been called first).
- get_all_constraints()#
Gathers all constraints.
- get_new_name(name, result_name, dim)#
Returns a variable name when a dimension is not specified.
- resolve()#
Resolves all constraints. It adds the attribute resolved_.
- update(key, value)#
Updates one shape. Returns True if the shape was different.