Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pyg-team/pytorch_geometric
/ jit
Function
jit
test/utils/test_undirected.py:23–24 ·
view source on GitHub ↗
(edge_index: Tensor)
Source
from the content-addressed store, hash-verified
21
22
@torch.jit.script
23
def
jit(edge_index: Tensor) -> bool:
24
return
is_undirected(edge_index)
25
26
assert not jit(torch.stack([row, col], dim=0))
27
Callers
15
test_contains_isolated_nodes
Function · 0.85
test_remove_isolated_nodes
Function · 0.85
test_softmax
Function · 0.85
test_scatter
Function · 0.85
test_get_laplacian
Function · 0.85
test_is_undirected
Function · 0.85
test_to_undirected
Function · 0.85
test_grid
Function · 0.85
test_normalized_cut
Function · 0.85
test_to_dense_adj
Function · 0.85
test_dense_to_sparse
Function · 0.85
test_to_torch_coo_tensor
Function · 0.85
Calls
2
is_undirected
Function · 0.90
to_undirected
Function · 0.90
Tested by
no test coverage detected