@@ -935,18 +935,14 @@ def count_running_memory(order, fgraph, nodes_mem, ignore_dmap=False):
935
935
if dmap and idx2 in dmap :
936
936
vidx = dmap [idx2 ]
937
937
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"
941
939
)
942
940
ins = node .inputs [vidx [0 ]]
943
941
if vmap and idx2 in vmap :
944
942
assert ins is None
945
943
vidx = vmap [idx2 ]
946
944
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"
950
946
)
951
947
ins = node .inputs [vidx [0 ]]
952
948
if ins is not None :
@@ -1093,9 +1089,7 @@ def min_memory_generator(executable_nodes, viewed_by, view_of):
1093
1089
assert ins is None
1094
1090
vidx = vmap [idx ]
1095
1091
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"
1099
1093
)
1100
1094
ins = node .inputs [vidx [0 ]]
1101
1095
if ins is not None :
@@ -1405,7 +1399,7 @@ def print_stats(stats1, stats2):
1405
1399
print (
1406
1400
(
1407
1401
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"
1409
1403
" Apply with dense outputs sizes)"
1410
1404
),
1411
1405
file = file ,
@@ -1545,8 +1539,7 @@ def amdlibm_speed_up(op):
1545
1539
return True
1546
1540
elif s_op .__class__ not in scalar_op_amdlibm_no_speed_up :
1547
1541
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." ,
1550
1543
s_op ,
1551
1544
file = file ,
1552
1545
)
0 commit comments