From 6c0c6a993d94091d9dc475e166504a2a74de2a60 Mon Sep 17 00:00:00 2001 From: xiebaiyuan Date: Wed, 19 Sep 2018 21:47:50 +0800 Subject: [PATCH] Delete float16_float32.py --- python/tools/mdl2fluid/float16_float32.py | 34 ----------------------- 1 file changed, 34 deletions(-) delete mode 100644 python/tools/mdl2fluid/float16_float32.py diff --git a/python/tools/mdl2fluid/float16_float32.py b/python/tools/mdl2fluid/float16_float32.py deleted file mode 100644 index e536238955..0000000000 --- a/python/tools/mdl2fluid/float16_float32.py +++ /dev/null @@ -1,34 +0,0 @@ -import binascii -import os -import numpy as np - - -def read_param(path): - try: - with open(path, "r") as f: - value = f.read(2) - a_hex = binascii.b2a_hex(value) - print a_hex - - - # value = f.read(2) - # a_hex = binascii.b2a_hex(value) - # print a_hex - # value = f.read(2) - # a_hex = binascii.b2a_hex(value) - # print a_hex - - except IOError: - print ": File not found." - - -def get_file_size(file_path): - file_path = unicode(file_path, 'utf8') - f_size = os.path.getsize(file_path) - f_size = f_size / float(1024 * 1024) - return round(f_size, 2) - - -read_param( - "/Users/xiebaiyuan/PaddleProject/paddle-mobile/python/tools/mdl2fluid/multiobjects/YOLOParameters_Universal" - ".bundle/conv1_0.bin") -- GitLab