MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / from_json_file

Method from_json_file

tensorflow/tools/docs/parser.py:229–233  ·  view source on GitHub ↗
(cls, filepath, doc_index)

Source from the content-addressed store, hash-verified

227
228 @classmethod
229 def from_json_file(cls, filepath, doc_index):
230 with open(filepath) as f:
231 json_dict = json.load(f)
232
233 return cls(doc_index=doc_index, **json_dict)
234
235 def to_json_file(self, filepath):
236 """Converts the RefenceResolver to json and writes it to the specified file.

Callers 1

Calls 1

loadMethod · 0.45

Tested by 1