parameters: (graph, node, ops_per_element=1)
return_statement: return ops.OpStats("flops", out_shape.num_elements() * ops_per_element)
docstring: Common code which compute flops for binary operations.
docstring_summary: Common code which compute flops for binary operations.
docstring_tokens: Common code which compute flops for binary operations .
function: def _binary_per_element_op_flops(graph, node, ops_per_element=1):
    """Common code which compute flops for binary operations."""
    out_shape = graph_util.tensor_shape_from_node_def_name(graph, node.name)
    out_shape.assert_is_fully_defined()
    return ops.OpStats("flops", out_shape.num_elements() * ops_per_element)
function_tokens: def _binary_per_element_op_flops ( graph , node , ops_per_element = 1 ) : out_shape = graph_util . tensor_shape_from_node_def_name ( graph , node . name ) out_shape . assert_is_fully_defined ( ) return ops . OpStats ( "flops" , out_shape . num_elements ( ) * ops_per_element )