Rate this Page

torch.fx.experimental.merge_matmul.are_nodes_independent#

torch.fx.experimental.merge_matmul.are_nodes_independent(nodes)[source]#

Check if all of the given nodes are pairwise-data independent.

Parameters:

nodes (list[Node]) – The nodes to check for data dependencies.

Returns:

True if any pair in nodes has a data dependency.