FFmpeg
|
Public Member Functions | |
def | __init__ (self, graph_def, nodes, outfile, dump4tb) |
def | add_operand (self, name, type) |
def | dump_for_tensorboard (self) |
def | get_conv2d_params (self, conv2d_scope_name) |
def | get_dense_params (self, dense_scope_name) |
def | dump_complex_conv2d_to_file (self, node, f) |
def | dump_dense_to_file (self, node, f) |
def | dump_simple_conv2d_to_file (self, node, f) |
def | dump_depth2space_to_file (self, node, f) |
def | dump_mirrorpad_to_file (self, node, f) |
def | dump_maximum_to_file (self, node, f) |
def | dump_mathbinary_to_file (self, node, f) |
def | dump_mathunary_to_file (self, node, f) |
def | dump_avg_pool_to_file (self, node, f) |
def | dump_layers_to_file (self, f) |
def | dump_operands_to_file (self, f) |
def | dump_to_file (self) |
def | generate_name_node_dict (self) |
def | generate_output_names (self) |
def | remove_identity (self) |
def | generate_edges (self) |
def | in_conv2d_scope (self, name) |
def | in_dense_scope (self, name) |
def | generate_sub_block_op_scope_info (self) |
def | run (self) |
Static Public Member Functions | |
def | get_scope_name (name) |
Definition at line 58 of file convert_from_tensorflow.py.
def convert_from_tensorflow.TFConverter.__init__ | ( | self, | |
graph_def, | |||
nodes, | |||
outfile, | |||
dump4tb | |||
) |
Definition at line 59 of file convert_from_tensorflow.py.
def convert_from_tensorflow.TFConverter.add_operand | ( | self, | |
name, | |||
type | |||
) |
Definition at line 87 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_avg_pool_to_file(), convert_from_tensorflow.TFConverter.dump_complex_conv2d_to_file(), convert_from_tensorflow.TFConverter.dump_dense_to_file(), convert_from_tensorflow.TFConverter.dump_depth2space_to_file(), convert_from_tensorflow.TFConverter.dump_mathbinary_to_file(), convert_from_tensorflow.TFConverter.dump_mathunary_to_file(), convert_from_tensorflow.TFConverter.dump_maximum_to_file(), convert_from_tensorflow.TFConverter.dump_mirrorpad_to_file(), and convert_from_tensorflow.TFConverter.dump_simple_conv2d_to_file().
def convert_from_tensorflow.TFConverter.dump_for_tensorboard | ( | self | ) |
Definition at line 105 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.run().
def convert_from_tensorflow.TFConverter.get_conv2d_params | ( | self, | |
conv2d_scope_name | |||
) |
Definition at line 112 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_complex_conv2d_to_file().
def convert_from_tensorflow.TFConverter.get_dense_params | ( | self, | |
dense_scope_name | |||
) |
Definition at line 132 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_dense_to_file().
def convert_from_tensorflow.TFConverter.dump_complex_conv2d_to_file | ( | self, | |
node, | |||
f | |||
) |
Definition at line 148 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file().
def convert_from_tensorflow.TFConverter.dump_dense_to_file | ( | self, | |
node, | |||
f | |||
) |
Definition at line 203 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file().
def convert_from_tensorflow.TFConverter.dump_simple_conv2d_to_file | ( | self, | |
node, | |||
f | |||
) |
Definition at line 255 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file().
def convert_from_tensorflow.TFConverter.dump_depth2space_to_file | ( | self, | |
node, | |||
f | |||
) |
Definition at line 293 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file().
def convert_from_tensorflow.TFConverter.dump_mirrorpad_to_file | ( | self, | |
node, | |||
f | |||
) |
Definition at line 304 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file().
def convert_from_tensorflow.TFConverter.dump_maximum_to_file | ( | self, | |
node, | |||
f | |||
) |
Definition at line 320 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file().
def convert_from_tensorflow.TFConverter.dump_mathbinary_to_file | ( | self, | |
node, | |||
f | |||
) |
Definition at line 333 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file().
def convert_from_tensorflow.TFConverter.dump_mathunary_to_file | ( | self, | |
node, | |||
f | |||
) |
Definition at line 364 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file().
def convert_from_tensorflow.TFConverter.dump_avg_pool_to_file | ( | self, | |
node, | |||
f | |||
) |
Definition at line 375 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file().
def convert_from_tensorflow.TFConverter.dump_layers_to_file | ( | self, | |
f | |||
) |
Definition at line 406 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_to_file().
def convert_from_tensorflow.TFConverter.dump_operands_to_file | ( | self, | |
f | |||
) |
Definition at line 443 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_to_file().
def convert_from_tensorflow.TFConverter.dump_to_file | ( | self | ) |
Definition at line 453 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.run().
def convert_from_tensorflow.TFConverter.generate_name_node_dict | ( | self | ) |
Definition at line 462 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.run().
def convert_from_tensorflow.TFConverter.generate_output_names | ( | self | ) |
Definition at line 467 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.run().
def convert_from_tensorflow.TFConverter.remove_identity | ( | self | ) |
Definition at line 478 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.run().
def convert_from_tensorflow.TFConverter.generate_edges | ( | self | ) |
Definition at line 506 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.run().
|
static |
Definition at line 516 of file convert_from_tensorflow.py.
def convert_from_tensorflow.TFConverter.in_conv2d_scope | ( | self, | |
name | |||
) |
Definition at line 523 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file().
def convert_from_tensorflow.TFConverter.in_dense_scope | ( | self, | |
name | |||
) |
Definition at line 534 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file().
def convert_from_tensorflow.TFConverter.generate_sub_block_op_scope_info | ( | self | ) |
Definition at line 544 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.run().
def convert_from_tensorflow.TFConverter.run | ( | self | ) |
Definition at line 586 of file convert_from_tensorflow.py.
convert_from_tensorflow.TFConverter.graph_def |
Definition at line 60 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_for_tensorboard().
convert_from_tensorflow.TFConverter.nodes |
Definition at line 61 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file(), convert_from_tensorflow.TFConverter.generate_edges(), convert_from_tensorflow.TFConverter.generate_name_node_dict(), convert_from_tensorflow.TFConverter.generate_output_names(), and convert_from_tensorflow.TFConverter.generate_sub_block_op_scope_info().
convert_from_tensorflow.TFConverter.outfile |
Definition at line 62 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_to_file().
convert_from_tensorflow.TFConverter.dump4tb |
Definition at line 63 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.run().
convert_from_tensorflow.TFConverter.layer_number |
Definition at line 64 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_avg_pool_to_file(), convert_from_tensorflow.TFConverter.dump_complex_conv2d_to_file(), convert_from_tensorflow.TFConverter.dump_dense_to_file(), convert_from_tensorflow.TFConverter.dump_depth2space_to_file(), convert_from_tensorflow.TFConverter.dump_mathbinary_to_file(), convert_from_tensorflow.TFConverter.dump_mathunary_to_file(), convert_from_tensorflow.TFConverter.dump_maximum_to_file(), convert_from_tensorflow.TFConverter.dump_mirrorpad_to_file(), convert_from_tensorflow.TFConverter.dump_simple_conv2d_to_file(), and convert_from_tensorflow.TFConverter.dump_to_file().
convert_from_tensorflow.TFConverter.output_names |
Definition at line 65 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file(), and convert_from_tensorflow.TFConverter.generate_output_names().
convert_from_tensorflow.TFConverter.name_node_dict |
Definition at line 66 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.add_operand(), convert_from_tensorflow.TFConverter.dump_avg_pool_to_file(), convert_from_tensorflow.TFConverter.dump_complex_conv2d_to_file(), convert_from_tensorflow.TFConverter.dump_mathbinary_to_file(), convert_from_tensorflow.TFConverter.dump_mathunary_to_file(), convert_from_tensorflow.TFConverter.dump_maximum_to_file(), convert_from_tensorflow.TFConverter.dump_mirrorpad_to_file(), convert_from_tensorflow.TFConverter.dump_simple_conv2d_to_file(), convert_from_tensorflow.TFConverter.generate_name_node_dict(), convert_from_tensorflow.TFConverter.generate_sub_block_op_scope_info(), convert_from_tensorflow.TFConverter.get_conv2d_params(), and convert_from_tensorflow.TFConverter.get_dense_params().
convert_from_tensorflow.TFConverter.edges |
Definition at line 67 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_complex_conv2d_to_file(), convert_from_tensorflow.TFConverter.dump_dense_to_file(), convert_from_tensorflow.TFConverter.generate_edges(), convert_from_tensorflow.TFConverter.get_conv2d_params(), and convert_from_tensorflow.TFConverter.get_dense_params().
convert_from_tensorflow.TFConverter.conv_activations |
Definition at line 68 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_complex_conv2d_to_file(), convert_from_tensorflow.TFConverter.dump_dense_to_file(), convert_from_tensorflow.TFConverter.dump_simple_conv2d_to_file(), convert_from_tensorflow.TFConverter.get_conv2d_params(), and convert_from_tensorflow.TFConverter.get_dense_params().
convert_from_tensorflow.TFConverter.conv_paddings |
Definition at line 69 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_complex_conv2d_to_file(), and convert_from_tensorflow.TFConverter.dump_simple_conv2d_to_file().
convert_from_tensorflow.TFConverter.pool_paddings |
Definition at line 70 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_avg_pool_to_file().
convert_from_tensorflow.TFConverter.converted_nodes |
Definition at line 71 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_avg_pool_to_file(), convert_from_tensorflow.TFConverter.dump_complex_conv2d_to_file(), convert_from_tensorflow.TFConverter.dump_dense_to_file(), convert_from_tensorflow.TFConverter.dump_depth2space_to_file(), convert_from_tensorflow.TFConverter.dump_layers_to_file(), convert_from_tensorflow.TFConverter.dump_mathbinary_to_file(), convert_from_tensorflow.TFConverter.dump_mathunary_to_file(), convert_from_tensorflow.TFConverter.dump_maximum_to_file(), convert_from_tensorflow.TFConverter.dump_mirrorpad_to_file(), and convert_from_tensorflow.TFConverter.dump_simple_conv2d_to_file().
convert_from_tensorflow.TFConverter.conv2d_scope_names |
Definition at line 72 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.generate_sub_block_op_scope_info(), and convert_from_tensorflow.TFConverter.in_conv2d_scope().
convert_from_tensorflow.TFConverter.conv2d_scopename_inputname_dict |
Definition at line 73 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_complex_conv2d_to_file(), and convert_from_tensorflow.TFConverter.generate_sub_block_op_scope_info().
convert_from_tensorflow.TFConverter.dense_scope_names |
Definition at line 74 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.generate_sub_block_op_scope_info(), and convert_from_tensorflow.TFConverter.in_dense_scope().
convert_from_tensorflow.TFConverter.dense_scopename_inputname_dict |
Definition at line 75 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_dense_to_file(), and convert_from_tensorflow.TFConverter.generate_sub_block_op_scope_info().
convert_from_tensorflow.TFConverter.op2code |
Definition at line 76 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_avg_pool_to_file(), convert_from_tensorflow.TFConverter.dump_complex_conv2d_to_file(), convert_from_tensorflow.TFConverter.dump_dense_to_file(), convert_from_tensorflow.TFConverter.dump_depth2space_to_file(), convert_from_tensorflow.TFConverter.dump_mathbinary_to_file(), convert_from_tensorflow.TFConverter.dump_mathunary_to_file(), convert_from_tensorflow.TFConverter.dump_maximum_to_file(), convert_from_tensorflow.TFConverter.dump_mirrorpad_to_file(), and convert_from_tensorflow.TFConverter.dump_simple_conv2d_to_file().
convert_from_tensorflow.TFConverter.mathbin2code |
Definition at line 78 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file(), and convert_from_tensorflow.TFConverter.dump_mathbinary_to_file().
convert_from_tensorflow.TFConverter.mathun2code |
Definition at line 79 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file(), and convert_from_tensorflow.TFConverter.dump_mathunary_to_file().
convert_from_tensorflow.TFConverter.mirrorpad_mode |
Definition at line 83 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_mirrorpad_to_file().
convert_from_tensorflow.TFConverter.name_operand_dict |
Definition at line 84 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.add_operand(), convert_from_tensorflow.TFConverter.dump_operands_to_file(), and convert_from_tensorflow.TFConverter.dump_to_file().
convert_from_tensorflow.TFConverter.id_different_scope_dict |
Definition at line 479 of file convert_from_tensorflow.py.
Referenced by convert_from_tensorflow.TFConverter.dump_layers_to_file().