提交 97d2666e 编写于 作者: W wuzewu

add debug log

上级 0cf54052
......@@ -120,9 +120,9 @@ class Module:
raise "Error! HubModule Can't init with nothing"
def _init_with_url(self, url):
utils.check_url_valid(url)
module_dir = default_downloader.download_file_and_uncompress(
module_url, save_path=".")
utils.check_url(url)
result, _, module_dir = default_downloader.download_file_and_uncompress(
url, save_path=".")
self._init_with_module_file(module_dir)
def _dump_processor(self):
......@@ -440,6 +440,9 @@ class Module:
if key:
fetch_dict[key] = program.global_block().var(var.name)
for param in self.program.global_block().iter_parameters():
logger.debug("%s %s" % (param.name, param.optimize_attr))
return feed_dict, fetch_dict, program
def get_name_prefix(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册