@@ -964,7 +964,10 @@ def tobytes(self) -> bytes:
964964
965965
966966class PackedTensor (TensorBase , _protocols .TensorProtocol , Generic [TArrayCompatible ]): # pylint: disable=too-many-ancestors
967- """A tensor that stores 4bit datatypes in packed format."""
967+ """A tensor that stores 4bit datatypes in packed format.
968+
969+ .. versionadded:: 0.1.2
970+ """
968971
969972 __slots__ = (
970973 "_dtype" ,
@@ -2335,6 +2338,12 @@ class Graph(_protocols.GraphProtocol, Sequence[Node], _display.PrettyPrintable):
23352338 seen as a Sequence of nodes and should be used as such. For example, to obtain
23362339 all nodes as a list, call ``list(graph)``.
23372340
2341+ .. versionchanged:: 0.1.1
2342+ Values with non-none producers will be rejected as graph inputs or initializers.
2343+
2344+ .. versionadded:: 0.1.1
2345+ Added ``add`` method to initializers and attributes.
2346+
23382347 Attributes:
23392348 name: The name of the graph.
23402349 inputs: The input values of the graph.
@@ -2545,12 +2554,17 @@ def all_nodes(self) -> Iterator[Node]:
25452554 Consider using
25462555 :class:`onnx_ir.traversal.RecursiveGraphIterator` for more advanced
25472556 traversals on nodes.
2557+
2558+ .. versionadded:: 0.1.2
25482559 """
25492560 # NOTE: This is a method specific to Graph, not required by the protocol unless proven
25502561 return onnx_ir .traversal .RecursiveGraphIterator (self )
25512562
25522563 def subgraphs (self ) -> Iterator [Graph ]:
2553- """Get all subgraphs in the graph in O(#nodes + #attributes) time."""
2564+ """Get all subgraphs in the graph in O(#nodes + #attributes) time.
2565+
2566+ .. versionadded:: 0.1.2
2567+ """
25542568 seen_graphs : set [Graph ] = set ()
25552569 for node in onnx_ir .traversal .RecursiveGraphIterator (self ):
25562570 graph = node .graph
@@ -3216,12 +3230,17 @@ def all_nodes(self) -> Iterator[Node]:
32163230 Consider using
32173231 :class:`onnx_ir.traversal.RecursiveGraphIterator` for more advanced
32183232 traversals on nodes.
3233+
3234+ .. versionadded:: 0.1.2
32193235 """
32203236 # NOTE: This is a method specific to Graph, not required by the protocol unless proven
32213237 return onnx_ir .traversal .RecursiveGraphIterator (self )
32223238
32233239 def subgraphs (self ) -> Iterator [Graph ]:
3224- """Get all subgraphs in the function in O(#nodes + #attributes) time."""
3240+ """Get all subgraphs in the function in O(#nodes + #attributes) time.
3241+
3242+ .. versionadded:: 0.1.2
3243+ """
32253244 seen_graphs : set [Graph ] = set ()
32263245 for node in onnx_ir .traversal .RecursiveGraphIterator (self ):
32273246 graph = node .graph
0 commit comments