Variables | |
parser = argparse.ArgumentParser(description='This is a simple script to dump Keras model into simple format suitable for porting into pure C++ model') | |
help | |
required | |
args = parser.parse_args() | |
arch = open(args.architecture).read() | |
model = model_from_json(arch) | |
loss | |
optimizer | |
list | layers = [] |
W = model.layers[ind].get_weights()[0] | |
Definition at line 20 of file dump_to_simple_cpp.py.
dump_to_simple_cpp.args = parser.parse_args() |
Definition at line 13 of file dump_to_simple_cpp.py.
dump_to_simple_cpp.help |
Definition at line 9 of file dump_to_simple_cpp.py.
list dump_to_simple_cpp.layers = [] |
Definition at line 29 of file dump_to_simple_cpp.py.
dump_to_simple_cpp.loss |
Definition at line 23 of file dump_to_simple_cpp.py.
dump_to_simple_cpp.model = model_from_json(arch) |
Definition at line 21 of file dump_to_simple_cpp.py.
dump_to_simple_cpp.optimizer |
Definition at line 23 of file dump_to_simple_cpp.py.
dump_to_simple_cpp.parser = argparse.ArgumentParser(description='This is a simple script to dump Keras model into simple format suitable for porting into pure C++ model') |
Definition at line 7 of file dump_to_simple_cpp.py.
dump_to_simple_cpp.required |
Definition at line 9 of file dump_to_simple_cpp.py.
dump_to_simple_cpp.W = model.layers[ind].get_weights()[0] |
Definition at line 43 of file dump_to_simple_cpp.py.