Skip to content
Snippets Groups Projects
Commit f8de6c88 authored by Hashim Sharif's avatar Hashim Sharif
Browse files

Fixing dump data routine - slows it down, needs improvement

parent dda75ceb
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ def dumpLabels(file_name, Y_test): ...@@ -29,7 +29,7 @@ def dumpLabels(file_name, Y_test):
"""def dumpData(file_name, X_test): def dumpData(file_name, X_test):
N = X_test.shape[0] N = X_test.shape[0]
C = X_test.shape[1] C = X_test.shape[1]
...@@ -49,9 +49,10 @@ def dumpLabels(file_name, Y_test): ...@@ -49,9 +49,10 @@ def dumpLabels(file_name, Y_test):
f.write(np.float32(val[0])) f.write(np.float32(val[0]))
f.close() f.close()
"""
"""
def dumpData(file_name, X_test): def dumpData(file_name, X_test):
N = X_test.shape[0] N = X_test.shape[0]
...@@ -69,7 +70,8 @@ def dumpData(file_name, X_test): ...@@ -69,7 +70,8 @@ def dumpData(file_name, X_test):
f.close() f.close()
"""
def dumpConvWeights(file_name, weights, N, C, H, W): def dumpConvWeights(file_name, weights, N, C, H, W):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment