This function is added to avoid using isinstance(obj, LoweredBackendModule) as it will import LoweredBackendModule, which may cause a circular import.
(obj: Any)
| 143 | |
| 144 | # pyre-ignore: Missing parameter annotation [2]: Parameter `obj` must have a type other than `Any`.Pyre |
| 145 | def is_lowered_module(obj: Any) -> bool: |
| 146 | """ |
| 147 | This function is added to avoid using isinstance(obj, LoweredBackendModule) as it will import LoweredBackendModule, which may cause a circular import. |
| 148 | """ |
| 149 | return type(obj).__name__ == LOWERED_BACKEND_MODULE_TYPE |
| 150 | |
| 151 | def get_lowered_module_name( |
| 152 | root: torch.nn.Module, |
no outgoing calls
no test coverage detected