Check if PyTorch is the backend.
()
| 18 | |
| 19 | |
| 20 | def check_pytorch(): |
| 21 | """Check if PyTorch is the backend.""" |
| 22 | if HAS_TORCH is False: |
| 23 | raise ModuleNotFoundError( |
| 24 | "This function requires PyTorch to be the backend." |
| 25 | ) |
| 26 | |
| 27 | |
| 28 | def get_long_edges(graph): |
no outgoing calls
no test coverage detected