@@ -935,18 +935,14 @@ def count_running_memory(order, fgraph, nodes_mem, ignore_dmap=False):
935935 if dmap and idx2 in dmap :
936936 vidx = dmap [idx2 ]
937937 assert len (vidx ) == 1 , (
938- "Here we only support the "
939- "possibility to destroy one "
940- "input"
938+ "Here we only support the possibility to destroy one input"
941939 )
942940 ins = node .inputs [vidx [0 ]]
943941 if vmap and idx2 in vmap :
944942 assert ins is None
945943 vidx = vmap [idx2 ]
946944 assert len (vidx ) == 1 , (
947- "Here we only support the "
948- "possibility to view one "
949- "input"
945+ "Here we only support the possibility to view one input"
950946 )
951947 ins = node .inputs [vidx [0 ]]
952948 if ins is not None :
@@ -1093,9 +1089,7 @@ def min_memory_generator(executable_nodes, viewed_by, view_of):
10931089 assert ins is None
10941090 vidx = vmap [idx ]
10951091 assert len (vidx ) == 1 , (
1096- "Here we only support "
1097- "the possibility to "
1098- "view one input"
1092+ "Here we only support the possibility to view one input"
10991093 )
11001094 ins = node .inputs [vidx [0 ]]
11011095 if ins is not None :
@@ -1405,7 +1399,7 @@ def print_stats(stats1, stats2):
14051399 print (
14061400 (
14071401 f" ... (remaining { max (0 , len (node_mem ) - N )} Apply account for "
1408- f"{ sum_remaining :4d} B/{ size_sum_dense :d} B ({ p } ) of the"
1402+ f"{ sum_remaining :4d} B/{ size_sum_dense :d} B ({ p } ) of the"
14091403 " Apply with dense outputs sizes)"
14101404 ),
14111405 file = file ,
@@ -1545,8 +1539,7 @@ def amdlibm_speed_up(op):
15451539 return True
15461540 elif s_op .__class__ not in scalar_op_amdlibm_no_speed_up :
15471541 print (
1548- "We don't know if amdlibm will accelerate "
1549- "this scalar op." ,
1542+ "We don't know if amdlibm will accelerate this scalar op." ,
15501543 s_op ,
15511544 file = file ,
15521545 )
0 commit comments