MCPcopy Create free account
hub / github.com/alibaba/euler / load_graph

Method load_graph

tf_euler/python/dataset/base_dataset.py:49–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 self.test_start_num = None
48
49 def load_graph(self):
50 origin_file = self.maybe_download(self.data_dir, self.source_url)
51 convert_file = self.maybe_convert2json(origin_file)
52 euler_file = self.maybe_convert2euler(convert_file)
53 if not tf_euler.initialize_embedded_graph(euler_file,
54 data_type=self.data_type):
55 raise RuntimeError('Failed to initialize graph.')
56
57 def get_data_dir(self):
58 origin_file = self.maybe_download(self.data_dir, self.source_url)

Callers 15

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 3

maybe_downloadMethod · 0.95
maybe_convert2jsonMethod · 0.95
maybe_convert2eulerMethod · 0.95

Tested by

no test coverage detected