Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
===Freezing the computational graph===
'''Baseline Freezing the model'''means producing a singular file containing information about the graph and checkpoint variables, but saving these hyperparameters as constants within the graph structure. This eliminates additional information saved in the checkpoint files such as the gradients at each point, which are included so that the model can be reloaded and training continued from where you left off. As this is not needed when serving a model purely for inference they are discarded in freezing. A frozen model is a file of the Google .pb file type. 
<pre>
INFO:tensorflow:Froze 12 variables.
===Transform the computational graph===
'''Applied transformations'''
<pre>
transformations_list = ['remove_nodes(op=Identity, op=CheckNumerics)',
'merge_duplicate_nodes',
'strip_unused_nodes',
'fold_constants(ignore_errors=true)',
'fold_batch_norms']
</pre>
 
'''Baseline model'''
<pre>
describe : frozen_graph.pb
Op: Softmax -- Name: predictions/Softmax
</pre>
 
<pre>
transformations_list = ['remove_nodes(op=Identity, op=CheckNumerics)',
'merge_duplicate_nodes',
'strip_unused_nodes',
'fold_constants(ignore_errors=true)',
'fold_batch_norms']
</pre>
 
<pre>
dave_user
207
edits