Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chengsen/PyTorch_TextGCN
/ read_file
Function
read_file
utils.py:86–89 ·
view source on GitHub ↗
(path, mode='r', encoding=None)
Source
from the content-addressed store, hash-verified
84
85
86
def
read_file(path, mode=
'r'
, encoding=None):
87
if
mode not in {
"r"
,
"rb"
}:
88
raise
ValueError(
"only read"
)
89
return
open(path, mode=mode, encoding=encoding)
90
91
92
def
print_graph_detail(graph):
Callers
1
get_train_test
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected