This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' You just need to copy this code to jupyter Notebook ''' | |
from IPython.display import clear_output, Image, display, HTML | |
def strip_consts(graph_def, max_const_size=32): | |
"""Strip large constant values from graph_def.""" | |
strip_def = tf.GraphDef() | |
for n0 in graph_def.node: | |
n = strip_def.node.add() | |
n.MergeFrom(n0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("This algorithm use backtrack to first find all possible sets using combination \n then uses permutation to get all possible arrangements \n\n\n") | |
class find_all_possiblities(): | |
def __init__(self,source_str): | |
self.source_str = source_str | |
self.generated_str = list() | |
self.prepare_for_combination(self.source_str) |