W3cubDocs

/PyTorch 2.9

torch.fx.experimental.symbolic_shapes.is_accessor_node

torch.fx.experimental.symbolic_shapes.is_accessor_node(node) [source]

Helper function to determine if a node is trying to access a symbolic integer such as size, stride, offset or item. Currently primarily only used in a DCE pass to figure out purity.

Return type

bool

© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/generated/torch.fx.experimental.symbolic_shapes.is_accessor_node.html