Skip to content
Snippets Groups Projects
Commit f93d7abe authored by Elizabeth's avatar Elizabeth
Browse files

Uncommented out cod eto run binaries and fixed h2f/f2h bug

parent 26eb6e76
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ class TableGenerator:
3. Writes the internal table to <network_name>_tensors.txt file and uses the
<network_name>_ops.txt file as a guideline in terms of row order
'''
#self.__run_inputted_binaries()
self.__run_inputted_binaries()
self.__build_internal_table()
self.__output_table_to_file()
......@@ -120,14 +120,13 @@ class TableGenerator:
exit(1)
# Store f2h and h2f as columns in the row belonging to the original operation
self.__table[orig_op_name][approx_type][TableGenerator.__time_col_name] = total_time
self.__table[orig_op_name][approx_type][TableGenerator.__energy_col_name] = total_energy
self.__table[orig_op_name][conversion_type][TableGenerator.__time_col_name] = total_time
self.__table[orig_op_name][conversion_type][TableGenerator.__energy_col_name] = total_energy
# Create a new row in the dictionary
else:
self.__table[op_name][approx_type][TableGenerator.__time_col_name] = total_time
self.__table[op_name][approx_type][TableGenerator.__energy_col_name] = total_energy
results_file.close()
......
# Python driver -- ported from Perl driver (driver.pl)
import sys
# Read layer info
# Read tensor info
# Run simulations on promise
if __name__ == "__main__":
if len(sys.argv) != 4):
print("Usage: python driver.py <layer info> <tensor info> <configurations> <results file>")
exit(1)
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