Commit 35cd255b by libei

remove no useful logs for debug

parent f18f4fd3
......@@ -134,7 +134,7 @@ def load_param():
full_name = '{}_{}'.format(name, i)
tensor_list += [reader.get_tensor(full_name)]
tensor = tf.concat(tensor_list, axis=0)
print('{} shape is: {}'.format(full_name, tensor.shape))
# print('{} shape is: {}'.format(full_name, tensor.shape))
return tensor
# source embedding, shape is src_vocab * emb_size
......@@ -731,11 +731,10 @@ if __name__ == '__main__':
param_dict = load_param()
settings = creat_settings()
#print the setting items
for k, v in settings.items():
print('{}={}'.format(k, v))
for k, v in param_dict.items():
print('{}:shape={}'.format(k,v.shape))
# for k, v in settings.items():
# print('{}={}'.format(k, v))
# for k, v in param_dict.items():
# print('{}:shape={}'.format(k,v.shape))
ck_state = {}
ck_state['args'] = convert_settings(settings)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论