Rate this Page

torch.fx.experimental.graph_gradual_typechecker.get_attr_inference_rule#

torch.fx.experimental.graph_gradual_typechecker.get_attr_inference_rule(n, traced)[source]#

The current getattr rule only handles the shape attribute Can be extended to other attributes The most representative type we have is “Dyn” but the system can be extended with more types, such as a type to represent shapes

Return type:

Any